Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.584 kb
require 'acl9/version'
require 'acl9/model_extensions'
require 'acl9/controller_extensions'
require 'acl9/helpers'
module Acl9
@@config = {
:default_role_class_name => 'Role',
:default_subject_class_name => 'User',
:default_subject_method => :current_user,
:default_association_name => :role_objects,
:protect_global_roles => false,
}
mattr_reader :config
end
ActiveRecord::Base.send(:include, Acl9::ModelExtensions)
ActionController::Base.send(:include, Acl9::ControllerExtensions)
Acl9Helpers = Acl9::Helpers unless defined?(Acl9Helpers)
Jump to Line
Something went wrong with that request. Please try again.