Skip to content
Snippets Groups Projects
Commit 41f62311 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'learning-object-serializer-publisher' into 'master'

now belongs_to :publisher

See merge request !402
parents f5fd1b23 f41c54cb
No related branches found
No related tags found
No related merge requests found
......@@ -29,30 +29,31 @@ class LearningObjectSerializer < ActiveModel::Serializer
object.complained? current_user
end
attributes :id,
:name,
:description,
:author,
:thumbnail,
:publisher,
:object_type,
:language,
:default_attachment_id,
:default_mime_type,
:score,
:state,
:review_average,
:link,
:software,
:license,
:liked,
:likes_count,
:reviewed,
:complained,
:shares_count,
:created_at,
:updated_at
attributes \
:id,
:name,
:description,
:author,
:thumbnail,
:object_type,
:language,
:default_attachment_id,
:default_mime_type,
:score,
:state,
:review_average,
:link,
:software,
:license,
:liked,
:likes_count,
:reviewed,
:complained,
:shares_count,
:created_at,
:updated_at
belongs_to :publisher
has_many :tags
has_many :subjects
has_many :educational_stages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment