Method: Moonrope::DSL::ActionDSL#access_rule
- Defined in:
- lib/moonrope/dsl/action_dsl.rb
#access_rule(name) ⇒ Object
Sets the name of the access rule to use for this action
140 141 142 143 144 145 146 147 |
# File 'lib/moonrope/dsl/action_dsl.rb', line 140 def access_rule(name) if name.is_a?(Hash) authenticator name.first[0] access_rule name.first[1] else @action.access_rule = name end end |