Module: Authorization

Defined in:
lib/branston/vendor/plugins/restful_authentication/lib/authorization.rb,
lib/branston/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb,
lib/branston/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb

Defined Under Namespace

Modules: AasmRoles, ModelClassMethods, ModelInstanceMethods, StatefulRoles

Class Method Summary collapse

Class Method Details

.included(recipient) ⇒ Object



2
3
4
5
6
7
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authorization.rb', line 2

def self.included(recipient)
  recipient.extend(ModelClassMethods)
  recipient.class_eval do
    include ModelInstanceMethods
  end
end