diff options
author | Paweł Kondzior <pawel@kondzior.com> | 2012-01-16 23:52:55 -0800 |
---|---|---|
committer | Paweł Kondzior <pawel@kondzior.com> | 2012-01-16 23:56:55 -0800 |
commit | 7021184f9cd385bc7f7c7bedf6ce871806b1981e (patch) | |
tree | 034aa5ce3525bcbd223233f467973a998c63a2f0 /activemodel/test/cases/naming_test.rb | |
parent | f9275e54e0a9462ccbf8d19639232c5cd0fe1348 (diff) | |
download | rails-7021184f9cd385bc7f7c7bedf6ce871806b1981e.tar.gz rails-7021184f9cd385bc7f7c7bedf6ce871806b1981e.tar.bz2 rails-7021184f9cd385bc7f7c7bedf6ce871806b1981e.zip |
Fix ActiveModel::Errors#dup
Since ActiveModel::Errors instance keeps all error messages as hash
we should duplicate this object as well.
Previously ActiveModel::Errors was a subclass of ActiveSupport::OrderedHash,
which results in different behavior on dup, this may result in regression for
people relying on it.
Because Rails 3.2 stills supports Ruby 1.8.7 in order to properly fix this
regression we need to backport #initialize_dup.
Diffstat (limited to 'activemodel/test/cases/naming_test.rb')
0 files changed, 0 insertions, 0 deletions