Module: Constellation::Authorization::Base
- Defined in:
- lib/constellation/authorization/base.rb,
lib/constellation/authorization/parser.rb
Defined Under Namespace
Modules: ControllerClassMethods, ControllerInstanceMethods, EvalParser, RecursiveDescentParser
Constant Summary collapse
- VALID_PREPOSITIONS =
['of', 'for', 'in', 'on', 'to', 'at', 'by']
- BOOLEAN_OPS =
['not', 'or', 'and']
- VALID_PREPOSITIONS_PATTERN =
VALID_PREPOSITIONS.join('|')
Class Method Summary collapse
Class Method Details
.included(recipient) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/constellation/authorization/base.rb', line 7 def self.included(recipient) recipient.extend ControllerClassMethods recipient.class_eval do include ControllerInstanceMethods end end |