From 5bdd76fc3b83f9cf3320905daae390ced4e7bf33 Mon Sep 17 00:00:00 2001 From: Dan Erikson Date: Tue, 2 Apr 2013 21:37:16 -0600 Subject: Fix a SystemStackError that occurs when using time zone aware attributes. This fixes issue #10066 --- activerecord/lib/active_record/persistence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 42cece3ad0..59f8e90e7a 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -51,7 +51,7 @@ module ActiveRecord # how this "single-table" inheritance mapping is implemented. def instantiate(record, column_types = {}) klass = discriminate_class_for_record(record) - column_types = klass.decorate_columns(column_types) + column_types = klass.decorate_columns(column_types.dup) klass.allocate.init_with('attributes' => record, 'column_types' => column_types) end -- cgit v1.2.3