blob: d2d62aa692c334532b9724059ad356ff07e283b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
if Rails::VERSION::MAJOR == 2 && RUBY_VERSION >= '2.0.0'
module ActiveRecord
module Associations
class AssociationProxy
def send(method, *args)
if proxy_respond_to?(method, true)
super
else
load_target
@target.send(method, *args)
end
end
end
end
end
end
|