aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/source
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/source
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/source')
-rw-r--r--railties/doc/guides/source/activerecord_validations_callbacks.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/activerecord_validations_callbacks.txt b/railties/doc/guides/source/activerecord_validations_callbacks.txt
index 7e9532911c..9994d7adf3 100644
--- a/railties/doc/guides/source/activerecord_validations_callbacks.txt
+++ b/railties/doc/guides/source/activerecord_validations_callbacks.txt
@@ -608,7 +608,7 @@ The +after_initialize+ and +after_find+ callbacks are a bit different from the o
== Halting Execution
-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 +false+ (not +nil+) 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.
+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 +before_create+, +before_save+, +before_update+ or +before_destroy+ callback methods returns a boolean +false+ (not +nil+) 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.
== Callback classes