Exception: ActiveEntity::AssociationNotFoundError
- Inherits:
- 
      ConfigurationError
      
        - Object
- StandardError
- ActiveEntityError
- ConfigurationError
- ActiveEntity::AssociationNotFoundError
 
- Defined in:
- lib/active_entity/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
- 
  
    
      #initialize(record = nil, association_name = nil)  ⇒ AssociationNotFoundError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AssociationNotFoundError. 
Constructor Details
#initialize(record = nil, association_name = nil) ⇒ AssociationNotFoundError
Returns a new instance of AssociationNotFoundError.
| 8 9 10 11 12 13 14 | # File 'lib/active_entity/associations.rb', line 8 def initialize(record = nil, association_name = nil) if record && association_name super("Association named '#{association_name}' was not found on #{record.class.name}; perhaps you misspelled it?") else super("Association was not found.") end end |