mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
just use return value of load_target
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user