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