scinote-web/app/serializers/api/v1/project_serializer.rb
2018-10-28 19:02:44 +01:00

14 lines
265 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
object.created_at
end
end
end
end