adds admin interface for poll questions

This commit is contained in:
rgarcia
2016-11-17 09:30:42 +01:00
parent bd1a0cf1ff
commit d9ad658758
19 changed files with 263 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
class Polls::QuestionsController < ApplicationController
load_and_authorize_resource :poll
load_and_authorize_resource :question, class: 'Poll::Question', through: :poll
load_and_authorize_resource :question, class: 'Poll::Question'#, through: :poll
has_filters %w{opened expired incoming}
has_orders %w{most_voted newest oldest}, only: :show