diff options
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index dd437bd066..8b7f15882a 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -540,10 +540,9 @@ directive on your declaration like: end eowarn - @source_reflection = reflections.first - else - @source_reflection = reflections.first end + + @source_reflection = reflections.first end # Returns the AssociationReflection object specified in the <tt>:through</tt> option |