method
method_missing
rails latest stable - Class:
ActiveRecord::Delegation::ClassSpecificRelation
method_missing(method, *args, &block)private
No documentation available.
# File activerecord/lib/active_record/relation/delegation.rb, line 117
def method_missing(method, *args, &block)
if @klass.respond_to?(method)
unless Delegation.uncacheable_methods.include?(method)
@klass.generate_relation_method(method)
end
scoping { @klass.public_send(method, *args, &block) }
else
super
end
end