Module: ActiveRecord::Delegation::ClassSpecificRelation
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_record/relation/delegation.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
117 118 119 120 121 122 123 124 125 126 |
# File '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 |