7d4da81272
* install rubocop * 1961 automatic rubocop fixes * update rubocop.yml to ignore half of the remaining cops * rubocop lint warnings * random other warnings fixed
16 lines
545 B
Ruby
16 lines
545 B
Ruby
class NewMapSerializer < ActiveModel::Serializer
|
|
embed :ids, include: true
|
|
attributes :id,
|
|
:name,
|
|
:desc,
|
|
:permission,
|
|
:screenshot,
|
|
:created_at,
|
|
:updated_at
|
|
|
|
has_many :topics, serializer: NewTopicSerializer
|
|
has_many :synapses, serializer: NewSynapseSerializer
|
|
has_many :mappings, serializer: NewMappingSerializer
|
|
has_many :contributors, root: :users, serializer: NewUserSerializer
|
|
has_many :collaborators, root: :users, serializer: NewUserSerializer
|
|
end
|