Exception: Simple::Authorisation::NoRulesForMethod

Inherits:
Exception
  • Object
show all
Defined in:
lib/simple-authorisation/no_rules_for_method.rb

Instance Method Summary collapse

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

#messageObject



9
10
11
# File 'lib/simple-authorisation/no_rules_for_method.rb', line 9

def message
  "no rules found for #{@route_name} method #{@method}"
end