Exception: BabySqueel::NotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baby_squeel/errors.rb

Overview

:nodoc:

Instance Method Summary collapse

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