mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
14 lines
288 B
Ruby
14 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
|