From fb665217723f7c4e9e96bb7658fc3048a1d64379 Mon Sep 17 00:00:00 2001 From: Christian Seiler Date: Thu, 16 Aug 2012 23:19:47 +0200 Subject: Call super to nullify the reference to the original errors object in the dup'ed object (call ActiveModel::Validations#initialize_dup). Closes #7291 --- activerecord/lib/active_record/timestamp.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/timestamp.rb') diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index bf95ccb298..dd08a6f4f5 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -42,6 +42,7 @@ module ActiveRecord def initialize_dup(other) # :nodoc: clear_timestamp_attributes + super end private -- cgit v1.2.3