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

Merge branch 'fix-collection-serializer' into 'master'

add relation belongs_to owner

See merge request !350
parents b8f9bbdc 614fd6fc
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ class CollectionSerializer < ActiveModel::Serializer
object.complained? current_user
end
attributes :id, :name, :owner, :created_at, :updated_at, :description, :privacy, :score, :likes_count, :liked, :reviewed, :complained, :review_average, :thumbnail
attributes :id, :name, :created_at, :updated_at, :description, :privacy, :score, :likes_count, :liked, :reviewed, :complained, :review_average, :thumbnail
belongs_to :owner
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