Module: Authorization::Base

Defined in:
lib/rails-authorization-plugin/lib/authorization.rb,
lib/rails-authorization-plugin/lib/publishare/parser.rb

Defined Under Namespace

Modules: ControllerClassMethods, ControllerInstanceMethods, EvalParser, RecursiveDescentParser

Constant Summary collapse

LOGIN_REQUIRED_REDIRECTION =
{
  controller: 'session',
  action: 'new'
}
PERMISSION_DENIED_REDIRECTION =
''
STORE_LOCATION_METHOD =
:store_location
VALID_PREPOSITIONS =
%w(of for in on to at by)
BOOLEAN_OPS =
%w[not or and]
VALID_PREPOSITIONS_PATTERN =
VALID_PREPOSITIONS.join('|')

Class Method Summary collapse

Class Method Details

.included(recipient) ⇒ Object


21
22
23
24
25
26
# File 'lib/rails-authorization-plugin/lib/authorization.rb', line 21

def self.included(recipient)
  recipient.extend(ControllerClassMethods)
  recipient.class_eval do
    include ControllerInstanceMethods
  end
end