Module: ActiveRecord::Delegation::ClassSpecificRelation
- Extended by:
- ActiveSupport::Concern
- Defined in:
- activerecord/lib/active_record/relation/delegation.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Method Summary
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
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 '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 |