123456789_123456789_123456789_123456789_123456789_

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(model)

[ GitHub ]

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

def create(model, ...)
  relation_class_for(model).new(model, ...)
end

#relation_class_for(model) (private)

[ GitHub ]

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

def relation_class_for(model)
  model.relation_delegate_class(self)
end