Allows flagging comments as inappropriate

This commit is contained in:
kikito
2015-08-20 18:47:16 +02:00
parent e5f893c8d1
commit e7effbf77c
7 changed files with 68 additions and 2 deletions

View File

@@ -13,10 +13,18 @@ Rails.application.routes.draw do
root 'welcome#index'
resources :debates do
member { post :vote }
member do
post :vote
put :flag_as_inappropiate
put :undo_flag_as_inappropiate
end
resources :comments, only: :create, shallow: true do
member { post :vote }
member do
post :vote
put :flag_as_inappropiate
put :undo_flag_as_inappropiate
end
end
end