aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-12 14:29:17 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-12 14:29:17 -0800
commit8f9944d5bcd684fedbd23e4fd77a2dabfaff6fad (patch)
treea7c737e096c451b6325feb2a5c05def732cc2660
parente9980f17fdca21655a9804d69632d83451067f58 (diff)
downloadrails-8f9944d5bcd684fedbd23e4fd77a2dabfaff6fad.tar.gz
rails-8f9944d5bcd684fedbd23e4fd77a2dabfaff6fad.tar.bz2
rails-8f9944d5bcd684fedbd23e4fd77a2dabfaff6fad.zip
just use return value of load_target
-rw-r--r--activerecord/lib/active_record/associations/association_proxy.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb
index a51adce958..f2de788522 100644
--- a/activerecord/lib/active_record/associations/association_proxy.rb
+++ b/activerecord/lib/active_record/associations/association_proxy.rb
@@ -82,8 +82,7 @@ module ActiveRecord
# Forwards <tt>===</tt> explicitly to the \target because the instance method
# removal above doesn't catch it. Loads the \target if needed.
def ===(other)
- load_target
- other === @target
+ other === load_target
end
# Returns the name of the table of the related class: