Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4106

Show
Ignore:
Timestamp:
03/30/06 19:25:07 (3 years ago)
Author:
rick
Message:

pass the correct reflection to HasManyThroughAssociationPolymorphicError

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/reflection.rb

    r4022 r4106  
    175175           
    176176          if source_reflection.options[:polymorphic] 
    177             raise HasManyThroughAssociationPolymorphicError.new(class_name, @reflection, source_reflection) 
     177            raise HasManyThroughAssociationPolymorphicError.new(class_name, self, source_reflection) 
    178178          end 
    179179        end