aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/html/activerecord_validations_callbacks.html
diff options
context:
space:
mode:
authorCassioMarques <cassiommc@gmail.com>2008-12-13 21:41:52 -0200
committerCassioMarques <cassiommc@gmail.com>2008-12-13 21:41:52 -0200
commitf06ea062975ee36f65c1a94650965c75ab706211 (patch)
tree20475b7307bf1af10554d3616b30fa91ff241a81 /railties/doc/guides/html/activerecord_validations_callbacks.html
parent596cd8317b9917941f90a8643d54335f7406b8b3 (diff)
downloadrails-f06ea062975ee36f65c1a94650965c75ab706211.tar.gz
rails-f06ea062975ee36f65c1a94650965c75ab706211.tar.bz2
rails-f06ea062975ee36f65c1a94650965c75ab706211.zip
Updated section about halting execution of operations when a before_xxx callback returns false (AR Validations and Callbacks Guide)
Diffstat (limited to 'railties/doc/guides/html/activerecord_validations_callbacks.html')
-rw-r--r--railties/doc/guides/html/activerecord_validations_callbacks.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/html/activerecord_validations_callbacks.html b/railties/doc/guides/html/activerecord_validations_callbacks.html
index 27f6c51d4f..9ce19ee614 100644
--- a/railties/doc/guides/html/activerecord_validations_callbacks.html
+++ b/railties/doc/guides/html/activerecord_validations_callbacks.html
@@ -1115,7 +1115,7 @@ Readability, since your callback declarations will live at the beggining of your
</div>
<h2 id="_halting_execution">10. Halting Execution</h2>
<div class="sectionbody">
-<div class="para"><p>As you start registering new callbacks for your models, they will be queued for execution. This queue will include all your model's validations, the registered callbacks and the database operation to be executed. However, if at any moment one of the callback methods returns a boolean <tt>false</tt> (not <tt>nil</tt>) value, this execution chain will be halted and the desired operation will not complete: your model will not get persisted in the database, or your records will not get deleted and so on.</p></div>
+<div class="para"><p>As you start registering new callbacks for your models, they will be queued for execution. This queue will include all your model's validations, the registered callbacks and the database operation to be executed. However, if at any moment one of the <tt>before_create</tt>, <tt>before_save</tt>, <tt>before_update</tt> or <tt>before_destroy</tt> callback methods returns a boolean <tt>false</tt> (not <tt>nil</tt>) value, this execution chain will be halted and the desired operation will not complete: your model will not get persisted in the database, or your records will not get deleted and so on.</p></div>
</div>
<h2 id="_callback_classes">11. Callback classes</h2>
<div class="sectionbody">