diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-07-03 03:16:04 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-07-03 03:16:04 +0300 |
commit | 5360014a5d77e8b6db71530dae49ac651392536d (patch) | |
tree | 3e2ab440e944a8327ea2ff8a53f8eb6d5bd4f739 /railties/guides/source | |
parent | d10aaefcfd4141144eaf971c0560da5631e3dff5 (diff) | |
download | rails-5360014a5d77e8b6db71530dae49ac651392536d.tar.gz rails-5360014a5d77e8b6db71530dae49ac651392536d.tar.bz2 rails-5360014a5d77e8b6db71530dae49ac651392536d.zip |
Changed passed argument to :validate => false in validation skipping section.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_record_validations_callbacks.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index cfd4ae55cc..84c33e34f9 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -86,9 +86,9 @@ The following methods skip validations, and will save the object to the database * +update_attribute+ * +update_counters+ -Note that +save+ also has the ability to skip validations if passed +false+ as argument. This technique should be used with caution. +Note that +save+ also has the ability to skip validations if passed +:validate => false+ as argument. This technique should be used with caution. -* +save(false)+ +* +save(:validate => false)+ h4. +valid?+ and +invalid?+ |