File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Persistence/save-i.ri
U:RDoc::AnyMethod[iI" save:ETI"#ActiveRecord::Persistence#save;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Saves the model.;To:RDoc::Markup::BlankLine o;
; [I"KIf the model is new, a record gets created in the database, otherwise ;TI"&the existing record gets updated.;T@o;
; [ I"NBy default, save always runs validations. If any of them fail the action ;TI"cis cancelled and #save returns +false+, and the record won't be saved. However, if you supply ;TI"H<tt>validate: false</tt>, validations are bypassed altogether. See ;TI"4ActiveRecord::Validations for more information.;T@o;
; [I"MBy default, #save also sets the +updated_at+/+updated_on+ attributes to ;TI"Kthe current time. However, if you supply <tt>touch: false</tt>, these ;TI"$timestamps will not be updated.;T@o;
; [ I"HThere's a series of callbacks associated with #save. If any of the ;TI"M<tt>before_*</tt> callbacks throws +:abort+ the action is cancelled and ;TI"D#save returns +false+. See ActiveRecord::Callbacks for further ;TI"
details.;T@o;
; [I"IAttributes marked as readonly are silently ignored if the record is ;TI"being updated.;T:
@fileI"%lib/active_record/persistence.rb;T:0@omit_headings_from_table_of_contents_below0I"save(**options)
;T0[ I"(**options, &block);T@(FI"Persistence;TcRDoc::NormalModule00