edge badge
Methods
D
N
Instance Public methods
delegate(method, opts = {})
# File activerecord/lib/active_record/relation/delegation.rb, line 47
def delegate(method, opts = {})
  @delegation_mutex.synchronize do
    return if method_defined?(method)
    super
  end
end
delegate_to_scoped_klass(method)
# File activerecord/lib/active_record/relation/delegation.rb, line 29
        def delegate_to_scoped_klass(method)
          @delegation_mutex.synchronize do
            return if method_defined?(method)

            if method.to_s =~ /\A[a-zA-Z_]\w*[!?]?\z/
              module_eval "                def #{method}(*args, &block)
                  scoping { @klass.#{method}(*args, &block) }
                end
", __FILE__, __LINE__ + 1
            else
              define_method method do |*args, &block|
                scoping { @klass.send(method, *args, &block) }
              end
            end
          end
        end
name()
# File activerecord/lib/active_record/relation/delegation.rb, line 25
def name
  superclass.name
end