mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
just call methods on return value of load_target
This commit is contained in:
@@ -150,17 +150,12 @@ module ActiveRecord
|
||||
|
||||
# Forwards the call to the target. Loads the \target if needed.
|
||||
def inspect
|
||||
load_target
|
||||
@target.inspect
|
||||
load_target.inspect
|
||||
end
|
||||
|
||||
def send(method, *args)
|
||||
if respond_to?(method)
|
||||
super
|
||||
else
|
||||
load_target
|
||||
@target.send(method, *args)
|
||||
end
|
||||
return super if respond_to?(method)
|
||||
load_target.send(method, *args)
|
||||
end
|
||||
|
||||
def scoped
|
||||
|
||||
Reference in New Issue
Block a user