aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorJaime Iniesta <jaimeiniesta@gmail.com>2010-07-20 18:17:29 +0200
committerXavier Noria <fxn@hashref.com>2010-07-22 01:28:31 +0200
commit6f7402d32b7b867844fc4ffff891474dc348d0d1 (patch)
treea05f1d4b4dd9bddba131f5fbe29fd8615c920f2b /railties/guides
parent402aaa56f5cd4470b9b8032d715e6fb0bdb1bf73 (diff)
downloadrails-6f7402d32b7b867844fc4ffff891474dc348d0d1.tar.gz
rails-6f7402d32b7b867844fc4ffff891474dc348d0d1.tar.bz2
rails-6f7402d32b7b867844fc4ffff891474dc348d0d1.zip
non-singleton true and false should go on regular font
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_record_validations_callbacks.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile
index be9917868f..c7ba130a90 100644
--- a/railties/guides/source/active_record_validations_callbacks.textile
+++ b/railties/guides/source/active_record_validations_callbacks.textile
@@ -1020,7 +1020,7 @@ Like in validations, we can also make our callbacks conditional, calling them on
h4. Using +:if+ and +:unless+ with a Symbol
-You can associate the +:if+ and +:unless+ options with a symbol corresponding to the name of a method that will get called right before the callback. When using the +:if+ option, the callback won't be executed if the method returns +false+; when using the +:unless+ option, the callback won't be executed if the method returns +true+. This is the most common option. Using this form of registration it's also possible to register several different methods that should be called to check if the callback should be executed.
+You can associate the +:if+ and +:unless+ options with a symbol corresponding to the name of a method that will get called right before the callback. When using the +:if+ option, the callback won't be executed if the method returns false; when using the +:unless+ option, the callback won't be executed if the method returns true. This is the most common option. Using this form of registration it's also possible to register several different methods that should be called to check if the callback should be executed.
<ruby>
class Order < ActiveRecord::Base