diff options
author | Lisa Ugray <lisa.ugray@shopify.com> | 2017-07-11 12:57:16 -0400 |
---|---|---|
committer | Lisa Ugray <lisa.ugray@shopify.com> | 2017-07-17 14:37:53 -0400 |
commit | a218a35e6602ac5591c95715d3d8fdad34009239 (patch) | |
tree | 5758272ac3c2d65737c84b41360e53bc89d932f2 /railties/.gitignore | |
parent | e319b01de8d42e1c8dd511d882b988121c81604f (diff) | |
download | rails-a218a35e6602ac5591c95715d3d8fdad34009239.tar.gz rails-a218a35e6602ac5591c95715d3d8fdad34009239.tar.bz2 rails-a218a35e6602ac5591c95715d3d8fdad34009239.zip |
Fix HashWithIndifferentAccess#default when include?(nil)
The implementation of HashWithIndifferentAccess#default didn't
distinguish `default` from `default(nil)`, which caused an incorrect
result for `default` if `nil` was used as a key.
Define HashWithIndifferentAccess#dig so that hackery that behaves
differently from Hash#default can be removed from
HashWithIndifferentAccess#default.
Diffstat (limited to 'railties/.gitignore')
0 files changed, 0 insertions, 0 deletions