scinote-web/app/serializers/api/v1/project_serializer.rb
2018-11-07 16:39:00 +01:00

15 lines
288 B
Ruby

# frozen_string_literal: true
module Api
module V1
class ProjectSerializer < ActiveModel::Serializer
type :projects
attributes :name, :visibility, :start_date, :archived
def start_date
I18n.l(object.created_at, format: :full)
end
end
end
end