Class: Authorization::Reader::DSLReader::DSLMethods
- Inherits:
-
Object
- Object
- Authorization::Reader::DSLReader::DSLMethods
- Defined in:
- lib/declarative_authorization/reader.rb
Overview
DSL methods
Instance Method Summary collapse
- #authorization(&block) ⇒ Object
- #contexts(&block) ⇒ Object
-
#initialize(parent) ⇒ DSLMethods
constructor
:nodoc:.
- #privileges(&block) ⇒ Object
Constructor Details
#initialize(parent) ⇒ DSLMethods
:nodoc:
105 106 107 |
# File 'lib/declarative_authorization/reader.rb', line 105 def initialize (parent) @parent = parent end |
Instance Method Details
#authorization(&block) ⇒ Object
117 118 119 |
# File 'lib/declarative_authorization/reader.rb', line 117 def (&block) @parent.auth_rules_reader.instance_eval(&block) end |
#contexts(&block) ⇒ Object
113 114 115 |
# File 'lib/declarative_authorization/reader.rb', line 113 def contexts (&block) # Not implemented end |
#privileges(&block) ⇒ Object
109 110 111 |
# File 'lib/declarative_authorization/reader.rb', line 109 def privileges (&block) @parent.privileges_reader.instance_eval(&block) end |