Module: ActiveRecord::Delegation::ClassMethods

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/relation/delegation.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create(klass, *args, **kwargs) ⇒ Object



117
118
119
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/relation/delegation.rb', line 117

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