moves comments out of commentables routes scopes

This commit is contained in:
Juanjo Bazán
2015-09-12 14:12:00 +02:00
parent 48b3e8c450
commit 6e27917d6e

View File

@@ -35,14 +35,6 @@ Rails.application.routes.draw do
put :flag
put :unflag
end
resources :comments, only: :create, shallow: true do
member do
post :vote
put :flag
put :unflag
end
end
end
resources :proposals do
@@ -51,13 +43,13 @@ Rails.application.routes.draw do
put :flag
put :unflag
end
end
resources :comments, only: :create, shallow: true do
member do
post :vote
put :flag
put :unflag
end
resources :comments, only: :create, shallow: true do
member do
post :vote
put :flag
put :unflag
end
end