Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11309 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

[PATCH] Documentation describing save(false) for ActiveRecord

Reported by: thechrisoshow Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: docs
Cc:

Description

It's a little known fact that when you specify validations in your model that the save method dynamically changes, allowing you to call:

save(false) 

which saves the model without running validations.

This patch has documentation describing this.

Attachments

docs_for_active_record_save.diff (0.8 kB) - added by thechrisoshow on 03/10/08 01:44:56.
Documentation for ActiveRecord save(false)

Change History

03/10/08 01:44:56 changed by thechrisoshow

  • attachment docs_for_active_record_save.diff added.

Documentation for ActiveRecord save(false)

03/12/08 21:01:03 changed by philodespotos

+1

A quick grep through AR shows that this truly isn't documented anywhere but validations_test.rb.

03/13/08 18:45:57 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [9023]) Docfix (closes #11309) [thechrisoshow]