Sha256: e982d4a0e029a6cd9bccc9f2ed36be4464e52578c5dcf0a1ae662e5fd70ee9e3

Contents?: true

Size: 380 Bytes

Versions: 16

Compression:

Stored size: 380 Bytes

Contents

module Admin
  class PollsController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_polls) }

    include Effective::CrudController

    on :save, only: :create, redirect: :edit

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

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
effective_polls-0.7.3 app/controllers/admin/polls_controller.rb
effective_polls-0.7.2 app/controllers/admin/polls_controller.rb
effective_polls-0.7.1 app/controllers/admin/polls_controller.rb
effective_polls-0.7.0 app/controllers/admin/polls_controller.rb
effective_polls-0.6.2 app/controllers/admin/polls_controller.rb
effective_polls-0.6.1 app/controllers/admin/polls_controller.rb
effective_polls-0.6.0 app/controllers/admin/polls_controller.rb
effective_polls-0.5.6 app/controllers/admin/polls_controller.rb
effective_polls-0.5.5 app/controllers/admin/polls_controller.rb
effective_polls-0.5.4 app/controllers/admin/polls_controller.rb
effective_polls-0.5.3 app/controllers/admin/polls_controller.rb
effective_polls-0.5.2 app/controllers/admin/polls_controller.rb
effective_polls-0.5.1 app/controllers/admin/polls_controller.rb
effective_polls-0.5.0 app/controllers/admin/polls_controller.rb
effective_polls-0.4.1 app/controllers/admin/polls_controller.rb
effective_polls-0.4.0 app/controllers/admin/polls_controller.rb