method
method_missing
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::Delegation
method_missing(method, *args, &block)protected
No documentation available.
# File activerecord/lib/active_record/relation/delegation.rb, line 128
def method_missing(method, *args, &block)
if @klass.respond_to?(method)
scoping { @klass.public_send(method, *args, &block) }
elsif array_delegable?(method)
to_a.public_send(method, *args, &block)
elsif arel.respond_to?(method)
arel.public_send(method, *args, &block)
else
super
end
end