merges master and fix conflicts

This commit is contained in:
kikito
2015-08-28 13:23:30 +02:00
62 changed files with 869 additions and 516 deletions

View File

@@ -28,15 +28,15 @@ Rails.application.routes.draw do
resources :debates do
member do
post :vote
put :flag_as_inappropiate
put :undo_flag_as_inappropiate
put :flag
put :unflag
end
resources :comments, only: :create, shallow: true do
member do
post :vote
put :flag_as_inappropiate
put :undo_flag_as_inappropiate
put :flag
put :unflag
end
end
end
@@ -61,15 +61,24 @@ Rails.application.routes.draw do
end
resources :users, only: [:index, :show] do
member { put :restore }
member do
put :restore
put :confirm_hide
end
end
resources :debates, only: [:index, :show] do
member { put :restore }
resources :debates, only: :index do
member do
put :restore
put :confirm_hide
end
end
resources :comments, only: :index do
member { put :restore }
member do
put :restore
put :confirm_hide
end
end
resources :tags, only: [:index, :create, :update, :destroy]
@@ -91,7 +100,7 @@ Rails.application.routes.draw do
member do
put :hide
put :hide_in_moderation_screen
put :archive
put :ignore_flag
end
end
@@ -99,7 +108,7 @@ Rails.application.routes.draw do
member do
put :hide
put :hide_in_moderation_screen
put :archive
put :ignore_flag
end
end
end