diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 09:55:21 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 10:10:06 -0700 |
commit | db1b92f4a35d220f3417ba90b58acf11d5595283 (patch) | |
tree | 9ab8bd01d17f76097000b7d7e3f1f35188ec805e /activerecord | |
parent | 399c369107a5977353ff330654ff1c5fd128cb54 (diff) | |
download | rails-db1b92f4a35d220f3417ba90b58acf11d5595283.tar.gz rails-db1b92f4a35d220f3417ba90b58acf11d5595283.tar.bz2 rails-db1b92f4a35d220f3417ba90b58acf11d5595283.zip |
clean up ivar assignment
Diffstat (limited to 'activerecord')
-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 |