just use return value of load_target

This commit is contained in:
Aaron Patterson
2011-01-12 14:29:17 -08:00
parent e9980f17fd
commit 8f9944d5bc

View File

@@ -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: