aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-03-14 22:14:10 +0100
committerXavier Noria <fxn@hashref.com>2009-03-14 22:20:05 +0100
commit66f5502fcca96c6005ddb8a254283a2df11792b3 (patch)
tree90d9246720ea26151c9b80583ad08be8e3982ea5 /railties/guides
parentabe921f81f8588da3fda8b6112a3cb9dc2621aec (diff)
downloadrails-66f5502fcca96c6005ddb8a254283a2df11792b3.tar.gz
rails-66f5502fcca96c6005ddb8a254283a2df11792b3.tar.bz2
rails-66f5502fcca96c6005ddb8a254283a2df11792b3.zip
revised titles in validation and callbacks guide
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/activerecord_validations_callbacks.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/activerecord_validations_callbacks.textile b/railties/guides/source/activerecord_validations_callbacks.textile
index c6c2cf91c4..3f62c76d81 100644
--- a/railties/guides/source/activerecord_validations_callbacks.textile
+++ b/railties/guides/source/activerecord_validations_callbacks.textile
@@ -1030,7 +1030,7 @@ h3. Observers
Observers are similar to callbacks, but with important differences. Whereas callbacks can pollute a model with code that isn't directly related to its purpose, observers allow you to add the same functionality outside of a model. For example, it could be argued that a +User+ model should not include code to send registration confirmation emails. Whenever you use callbacks with code that isn't directly related to your model, you may want to consider creating an observer instead.
-h4. Creating observers
+h4. Creating Observers
For example, imagine a +User+ model where we want to send an email every time a new user is created. Because sending emails is not directly related to our model's purpose, we could create an observer to contain this functionality.