Sha256: 1307fa7ef6130202c2c8e245d49691c5ce59934a22fe6d6baafbfe18555c3da3

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

module Admin
  class PollQuestionsController < ApplicationController
    layout EffectivePolls.layout[:admin]

    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectivePolls.authorize!(self, :admin, :effective_polls) }

    include Effective::CrudController

    def permitted_params
      params.require(:effective_poll_question).permit!
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_polls-0.1.6 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.5 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.4 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.3 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.2 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.1 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.1.0 app/controllers/admin/poll_questions_controller.rb
effective_polls-0.0.2 app/controllers/admin/poll_questions_controller.rb