Methods
Instance Public methods
delegate(method, opts = {})
Link
delegate_to_scoped_klass(method)
Link
# 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
