From 9a38e73c631f4358b4863849ec16c84f6c876225 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 16 Oct 2012 09:46:44 -0700 Subject: Merge pull request #7371 from csmuc/fix_dup_validation_errors Dup'ed ActiveRecord objects may not share the errors object Conflicts: activerecord/CHANGELOG.md activerecord/test/cases/dup_test.rb --- activerecord/lib/active_record/timestamp.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index 0c760e9850..ab25dc52f9 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -39,6 +39,7 @@ module ActiveRecord def initialize_dup(other) clear_timestamp_attributes + super end private -- cgit v1.2.3