Merge branch 'master' into aperez-admin-questions-section

This commit is contained in:
Raimond Garcia
2017-10-04 14:13:20 +02:00
committed by GitHub
68 changed files with 306 additions and 619 deletions

View File

@@ -113,7 +113,7 @@ Rails.application.routes.draw do
end
resources :polls, only: [:show, :index] do
resources :questions, only: [:show], controller: 'polls/questions', shallow: true do
resources :questions, controller: 'polls/questions', shallow: true do
post :answer, on: :member
end
end
@@ -273,9 +273,7 @@ Rails.application.routes.draw do
scope module: :poll do
resources :polls do
get :search_questions, on: :member
patch :add_question, on: :member
patch :remove_question, on: :member
resources :booth_assignments, only: [:index, :show, :create, :destroy] do
get :search_booths, on: :collection