Module: ActiveRecord::Delegation::ClassMethods

Defined in:
activerecord/lib/active_record/relation/delegation.rb

Overview

:nodoc:

Constant Summary collapse

@@subclasses =
ThreadSafe::Cache.new(:initial_capacity => 2)

Instance Method Summary collapse

Instance Method Details

#create(klass, *args) ⇒ Object



76
77
78
# File 'activerecord/lib/active_record/relation/delegation.rb', line 76

def create(klass, *args)
  relation_class_for(klass).new(klass, *args)
end