aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/errors.rb
diff options
context:
space:
mode:
authorWojciech Wnętrzak <w.wnetrzak@gmail.com>2015-01-24 11:58:52 +0100
committerWojciech Wnętrzak <w.wnetrzak@gmail.com>2015-01-24 11:58:55 +0100
commitfb7d95b21222f762eb4dded727a5999fb198fdfb (patch)
tree2aaca617207d1c219196fce47c013e677bc1e5b4 /activemodel/lib/active_model/errors.rb
parent847395a04df52a389823ff4367c4b002cdbb5c6a (diff)
downloadrails-fb7d95b21222f762eb4dded727a5999fb198fdfb.tar.gz
rails-fb7d95b21222f762eb4dded727a5999fb198fdfb.tar.bz2
rails-fb7d95b21222f762eb4dded727a5999fb198fdfb.zip
Fixed duplicating ActiveModel::Errors#details
Diffstat (limited to 'activemodel/lib/active_model/errors.rb')
-rw-r--r--activemodel/lib/active_model/errors.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 912448e43c..a809c72ccd 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -2,6 +2,7 @@
require 'active_support/core_ext/array/conversions'
require 'active_support/core_ext/string/inflections'
+require 'active_support/core_ext/object/deep_dup'
module ActiveModel
# == Active \Model \Errors
@@ -77,7 +78,7 @@ module ActiveModel
def initialize_dup(other) # :nodoc:
@messages = other.messages.dup
- @details = other.details.dup
+ @details = other.details.deep_dup
super
end