Exception: ActiveRecord::AssociationNotFoundError

Inherits:
ConfigurationError show all
Defined in:
activerecord/lib/active_record/associations.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(record, association_name) ⇒ AssociationNotFoundError

Returns a new instance of AssociationNotFoundError.



8
9
10
# File 'activerecord/lib/active_record/associations.rb', line 8

def initialize(record, association_name)
  super("Association named '#{association_name}' was not found on #{record.class.name}; perhaps you misspelled it?")
end