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

Merge branch 'fix-controllers'

parents cb9d6511 5679e484
No related branches found
No related tags found
No related merge requests found
......@@ -38,4 +38,4 @@ module SociableController
sociable.view current_user if user_signed_in?
end
end
\ No newline at end of file
end
......@@ -68,6 +68,6 @@ 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, :tag, learning_objects: [])
params.require(:collection).permit(:name, :description, :owner_id, :owner_type, :privacy, :tag, learning_objects: [])
end
end
......@@ -39,7 +39,9 @@ Rails.application.routes.draw do
namespace :v1 do
resources :users, concerns: :followable do
member do
resources :bookmarks, module: 'users', only: [:index, :create, :destroy]
resources :bookmarks, module: 'users', only: [:index, :create]
delete :bookmarks, to: 'bookmarks#destroy'
end
end
resources :collections, concerns: [:followable, :sociable, :reviewable, :taggable]
......
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