Module: RoleRequirementSystem

Included in:
ApplicationController
Defined in:
lib/role_requirement_system.rb

Overview

Main module for authentication.

Include this in ApplicationController to activate RoleRequirement

See RoleSecurityClassMethods for some methods it provides.

Defined Under Namespace

Modules: RoleSecurityClassMethods, RoleSecurityInstanceMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/role_requirement_system.rb', line 6

def self.included(klass)
  klass.send :class_inheritable_array, :role_requirements
  klass.send :include, RoleSecurityInstanceMethods
  klass.send :extend, RoleSecurityClassMethods
  klass.send :helper_method, :url_options_authenticate? 
  
  klass.send :role_requirements=, []
  
end