Exception: BabySqueel::NotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- BabySqueel::NotFoundError
- Defined in:
- lib/baby_squeel/errors.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(model_name, name, strategies) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(model_name, name, strategies) ⇒ NotFoundError
Returns a new instance of NotFoundError.
3 4 5 6 |
# File 'lib/baby_squeel/errors.rb', line 3 def initialize(model_name, name, strategies) super "There is no #{sentence(strategies)} " \ "named '#{name}' for #{model_name}." end |