mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Merge pull request #1354 from okriuchykhin/ok_SCI_2820
Fix project start day in serializer [SCI-2820]
This commit is contained in:
commit
8f33275b35
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue