diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-20 21:01:08 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-20 21:01:08 -0200 |
commit | 787bbb8fbab0fe2ef2822d403078b72106365627 (patch) | |
tree | 73a02ade0ded771b2b5bea07c3686f9e96abae09 /guides/source | |
parent | f55bfe726045594c78438841cdccd5843522deab (diff) | |
download | rails-787bbb8fbab0fe2ef2822d403078b72106365627.tar.gz rails-787bbb8fbab0fe2ef2822d403078b72106365627.tar.bz2 rails-787bbb8fbab0fe2ef2822d403078b72106365627.zip |
Oops :bomb:
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index cd7d349c82..d65c15bcf3 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -1078,7 +1078,7 @@ Another way to do this is using `[]=` setter ```ruby class Person < ActiveRecord::Base def a_method_used_for_validation_purposes - errors.messages.add(:name, "cannot contain the characters !@#%*()_-+=") + errors.add(:name, "cannot contain the characters !@#%*()_-+=") end end |