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

Merge branch 'collection-curator' into 'master'

Collection curator

See merge request !422
parents 010b118a 81b73a4a
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ class V1::CollectionsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def collection_params
params.require(:collection).permit(:name, :description, :owner_id, :owner_type, :privacy, tags: [])
params.require(:collection).permit(:name, :curator, :description, :owner_id, :owner_type, :privacy, tags: [])
end
def extra_params
......
......@@ -28,7 +28,7 @@ class CollectionSerializer < ActiveModel::Serializer
thumbs
end
attributes :id, :name, :created_at, :updated_at, :description, :privacy, :score, :likes_count, :liked, :followed, :reviewed, :complained, :review_average, :thumbnail, :items_thumbnails
attributes :id, :name, :curator, :created_at, :updated_at, :description, :privacy, :score, :likes_count, :liked, :followed, :reviewed, :complained, :review_average, :thumbnail, :items_thumbnails
belongs_to :owner
has_many :tags
......
class AddCuratorToCollection < ActiveRecord::Migration[5.0]
def change
add_column :collections, :curator, :string
end
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