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 ...@@ -29,30 +29,31 @@ class LearningObjectSerializer < ActiveModel::Serializer
object.complained? current_user object.complained? current_user
end end
attributes :id, attributes \
:name, :id,
:description, :name,
:author, :description,
:thumbnail, :author,
:publisher, :thumbnail,
:object_type, :object_type,
:language, :language,
:default_attachment_id, :default_attachment_id,
:default_mime_type, :default_mime_type,
:score, :score,
:state, :state,
:review_average, :review_average,
:link, :link,
:software, :software,
:license, :license,
:liked, :liked,
:likes_count, :likes_count,
:reviewed, :reviewed,
:complained, :complained,
:shares_count, :shares_count,
:created_at, :created_at,
:updated_at :updated_at
belongs_to :publisher
has_many :tags has_many :tags
has_many :subjects has_many :subjects
has_many :educational_stages 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