123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Delegation::ClassSpecificRelation

Do not use. This module is for internal use only.
Relationships & Source Files
Namespace Children
Modules:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: activerecord/lib/active_record/relation/delegation.rb

Class Method Summary

::ActiveSupport::Concern - Extended

class_methods

Define class methods from given block.

included

Evaluate given block in context of base class, so that you can write class macros here.

prepended

Evaluate given block in context of base class, so that you can write class macros here.

append_features, prepend_features

Instance Method Summary

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/delegation.rb', line 115

def method_missing(method, ...)
  if @klass.respond_to?(method)
    unless Delegation.uncacheable_methods.include?(method)
      @klass.generate_relation_method(method)
    end
    scoping { @klass.public_send(method, ...) }
  else
    super
  end
end