Skip to content
Snippets Groups Projects
Commit abb625fb authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

remove useless includes

parent bf6b4cd6
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,7 @@ module PublisherController
end
def show_liked_collections
# includes = [:taggings, :tags, :subject_relations, :subjects, :stage_relations, :educational_stages, :publisher, :language, :license]
render json: Collection.includes(includes).find(
render json: Collection.find(
Like.where(user: publisher, likeable_type: 'Collection').pluck(:likeable_id)
)
end
......
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