Permalink
Browse files

clean up ivar assignment

  • Loading branch information...
1 parent 399c369 commit db1b92f4a35d220f3417ba90b58acf11d5595283 @tenderlove tenderlove committed Jun 13, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 activerecord/lib/active_record/reflection.rb
@@ -540,10 +540,9 @@ class #{active_record.name} < ActiveRecord::Base
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

0 comments on commit db1b92f

Please sign in to comment.