Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Updating ActiveModel::Errors documentation to plug Translations and V…

…alidations modules
  • Loading branch information...
1 parent 19814df commit a6831b95d6755b8cab0ab06921aa5aa6ea5a9e95 @mikel mikel committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 activemodel/lib/active_model/errors.rb
5 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:

0 comments on commit a6831b9

Please sign in to comment.
Something went wrong with that request. Please try again.