Sha256: 0ebf0bf52111b0e5f4b5667289480733160e602cc5ea80ec9132a0a6f36d7d8b
Contents?: true
Size: 417 Bytes
Versions: 17
Compression:
Stored size: 417 Bytes
Contents
module Admin class <%= resource.class_name.sub('Effective::', '') %>sController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) before_action { EffectiveResources.authorize!(self, :admin, :<%= effective_gem_name %>) } include Effective::CrudController private def permitted_params params.require(:<%= resource.resource_name %>).permit! end end end
Version data entries
17 entries across 17 versions & 1 rubygems