Merge pull request #1354 from okriuchykhin/ok_SCI_2820

Fix project start day in serializer [SCI-2820]
This commit is contained in:
Alex Kriuchykhin 2018-10-29 13:44:41 +01:00 committed by GitHub
commit 8f33275b35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,11 @@ module Api
module V1
class ProjectSerializer < ActiveModel::Serializer
type :projects
attributes :id, :name, :visibility, :due_date,
:archived
attributes :name, :visibility, :start_date, :archived
def start_date
object.created_at
end
end
end
end