Merge branch 'master' into aperez-edit-poll-question-answers

This commit is contained in:
Raimond Garcia
2017-10-06 18:14:00 +02:00
committed by GitHub
35 changed files with 338 additions and 77 deletions

View File

@@ -300,11 +300,11 @@ Rails.application.routes.draw do
end
end
resources :questions do
resources :questions, shallow: true do
resources :answers, except: [:index, :destroy, :delete], controller: 'questions/answers', shallow: true do
resources :images, controller: 'questions/answers/images'
resources :videos, controller: 'questions/answers/videos'
end
end
end