aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-01-17 20:22:14 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2010-01-17 20:22:14 +1100
commita6831b95d6755b8cab0ab06921aa5aa6ea5a9e95 (patch)
tree9cdc9289907dd612586f4adf3ee997a05c3123d2 /activemodel/lib
parent19814df40d171b2ed83875a36d7361881ccf2e70 (diff)
downloadrails-a6831b95d6755b8cab0ab06921aa5aa6ea5a9e95.tar.gz
rails-a6831b95d6755b8cab0ab06921aa5aa6ea5a9e95.tar.bz2
rails-a6831b95d6755b8cab0ab06921aa5aa6ea5a9e95.zip
Updating ActiveModel::Errors documentation to plug Translations and Validations modules
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 6ea85a288c..93935c0473 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -41,7 +41,10 @@ module ActiveModel
#
# The last three methods are required in your object for Errors to be
# able to generate error messages correctly and also handle multiple
- # languages.
+ # languages. Of course, if you extend your object with ActiveModel::Translations
+ # you will not need to implement the last two. Likewise, using
+ # ActiveModel::Validations will handle the validation related methods
+ # for you.
#
# The above allows you to do:
#