Exception: ActiveRecord::AssociationNotFoundError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- ActiveRecordError
- ConfigurationError
- ActiveRecord::AssociationNotFoundError
- Defined in:
- activerecord/lib/active_record/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(record, association_name) ⇒ AssociationNotFoundError
constructor
A new instance of AssociationNotFoundError.
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 |