Exception: ControllerPolicies::AbilityMethodUnimplementedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/controller_policies.rb

Overview

Exception raised for unimplemented ability? method for those including ControllerPolicies::Enforcement.

Instance Method Summary collapse

Constructor Details

#initialize(_msg) ⇒ AbilityMethodUnimplementedError

Returns a new instance of AbilityMethodUnimplementedError.



13
14
15
# File 'lib/controller_policies.rb', line 13

def initialize(_msg)
  super('`ability?(ability_code)` method is not implemented')
end