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