Exception: Simple::Authorisation::NoRulesForMethod
- Inherits:
-
Exception
- Object
- Exception
- Simple::Authorisation::NoRulesForMethod
- Defined in:
- lib/simple-authorisation/no_rules_for_method.rb
Instance Method Summary collapse
-
#initialize(route_name, method) ⇒ NoRulesForMethod
constructor
A new instance of NoRulesForMethod.
- #message ⇒ Object
Constructor Details
#initialize(route_name, method) ⇒ NoRulesForMethod
Returns a new instance of NoRulesForMethod.
4 5 6 7 |
# File 'lib/simple-authorisation/no_rules_for_method.rb', line 4 def initialize(route_name, method) @route_name = route_name @method = method end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/simple-authorisation/no_rules_for_method.rb', line 9 def "no rules found for #{@route_name} method #{@method}" end |