diff options
author | Robson Marques <robsonmarques@gmail.com> | 2014-12-19 15:26:41 -0200 |
---|---|---|
committer | Robson Marques <robsonmarques@gmail.com> | 2014-12-22 09:06:30 -0200 |
commit | ebaf4e40cdcb80ebe16014a2c979f688213d7b92 (patch) | |
tree | 0c0c47849af87868b7dc80f975a639262a490711 /guides | |
parent | a407bb245b0f5888c93dd98265e0f3b2cb35ef20 (diff) | |
download | rails-ebaf4e40cdcb80ebe16014a2c979f688213d7b92.tar.gz rails-ebaf4e40cdcb80ebe16014a2c979f688213d7b92.tar.bz2 rails-ebaf4e40cdcb80ebe16014a2c979f688213d7b92.zip |
Fix inaccurate docs in active_model errors [ci skip]
The default value for the argument `message` in
`ActiveModel::Errors#add` has a new behavior
since ca99ab2481d44d67bc392d0ec1125ff1439e9f94.
Before
person.errors.add(:name, nil)
# => ["is invalid"]
After
person.errors.add(:name, nil)
# => [nil]
Diffstat (limited to 'guides')
0 files changed, 0 insertions, 0 deletions