aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/attribute
diff options
context:
space:
mode:
authorEdouard CHIN <edouard.chin@shopify.com>2019-07-11 01:41:14 +0200
committerEdouard CHIN <edouard.chin@shopify.com>2019-07-11 01:41:14 +0200
commit4a8cf101485469194f56ff666b262bd8bb2a538e (patch)
tree32c48f9baf14c68e6a4add2e5a445eb86d358924 /activemodel/lib/active_model/attribute
parent84ff4f6ea2a118b47160e3fe7ed29bff52c2a7a2 (diff)
downloadrails-4a8cf101485469194f56ff666b262bd8bb2a538e.tar.gz
rails-4a8cf101485469194f56ff666b262bd8bb2a538e.tar.bz2
rails-4a8cf101485469194f56ff666b262bd8bb2a538e.zip
Returns `nil` when `AM::Errors#delete` doesn't delete anything:
- `AM::Errors#delete` currently returns an empty array when trying to delete an error that doesn't exist. This behaviour is surprising and I think it would be better to no return a truthy value but instead return nil like `Hash#delete` does.
Diffstat (limited to 'activemodel/lib/active_model/attribute')
0 files changed, 0 insertions, 0 deletions