Module: ActiveRecord::Delegation::ClassMethods

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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



128
129
130
# File 'lib/active_record/relation/delegation.rb', line 128

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