Module: ActiveRecord::Delegation::ClassMethods
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/relation/delegation.rb |
Instance Method Summary
Instance Method Details
#create(klass, *args, **kwargs)
[ GitHub ]# File 'activerecord/lib/active_record/relation/delegation.rb', line 128
def create(klass, *args, **kwargs) relation_class_for(klass).new(klass, *args, **kwargs) end
#relation_class_for(klass) (private)
[ GitHub ]# File 'activerecord/lib/active_record/relation/delegation.rb', line 133
def relation_class_for(klass) klass.relation_delegate_class(self) end