Module: Acl9

Defined in:
lib/acl9.rb,
lib/acl9/helpers.rb,
lib/acl9/version.rb,
lib/acl9/prepositions.rb,
lib/acl9/model_extensions.rb,
lib/acl9/controller_extensions.rb,
lib/acl9/model_extensions/for_object.rb,
lib/acl9/model_extensions/for_subject.rb,
lib/acl9/controller_extensions/dsl_base.rb,
lib/acl9/controller_extensions/generators.rb,
lib/generators/acl9/setup/setup_generator.rb

Defined Under Namespace

Modules: ControllerExtensions, Dsl, Helpers, ModelExtensions, Prepositions Classes: AccessDenied, ArgumentError, Config, FilterSyntaxError, NilObjectError, RuntimeError, SetupGenerator

Constant Summary collapse

CONFIG =
{
  :default_role_class_name    => 'Role',
  :default_subject_class_name => 'User',
  :default_subject_method     => :current_user,
  :default_association_name   => :role_objects,
  :default_join_table_name    => nil,
  :protect_global_roles       => true,
  :normalize_role_names       => true,
}.freeze
VERSION =
"3.2.0"
@@config =
Config.new( *CONFIG.values_at(*Config.members))

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

  • (config)

35
36
37
# File 'lib/acl9.rb', line 35

def self.configure
  yield config
end