Exception: BabySqueel::AssociationNotFoundError

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

Instance Method Summary collapse

Constructor Details

#initialize(scope, name) ⇒ AssociationNotFoundError

Returns a new instance of AssociationNotFoundError.



5
6
7
# File 'lib/baby_squeel/table.rb', line 5

def initialize(scope, name)
  super "Association named '#{name}' was not found on #{scope.model_name}"
end