File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/QueryMethods/create_with-i.ri
U:RDoc::AnyMethod[iI"create_with:ETI"+ActiveRecord::QueryMethods#create_with;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ASets attributes to be used when creating new records from a ;TI"relation object.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"'users = User.where(name: 'Oscar')
;TI"!users.new.name # => 'Oscar'
;TI"
;TI",users = users.create_with(name: 'DHH')
;TI"users.new.name # => 'DHH'
;T:@format0o;
; [I"<You can pass +nil+ to #create_with to reset attributes:;T@o;; [I"$users = users.create_with(nil)
;TI" users.new.name # => 'Oscar';T;
0:
@fileI"0lib/active_record/relation/query_methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(value);T@FI"QueryMethods;TcRDoc::NormalModule00