From 975c9c9d4498a4b4a00de713e932abe3299a4007 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 10 Sep 2013 18:07:54 +1000 Subject: Perf: avoid dupes add fallback logic for coders --- activerecord/test/cases/serialized_attribute_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb index b49c27bc78..24c5f330a1 100644 --- a/activerecord/test/cases/serialized_attribute_test.rb +++ b/activerecord/test/cases/serialized_attribute_test.rb @@ -245,7 +245,7 @@ class SerializedAttributeTest < ActiveRecord::TestCase Topic.create(content: myobj) Topic.all.each do |topic| - type = topic.instance_variable_get("@columns_hash")["content"] + type = Topic.column_types["content"] assert !type.instance_variable_get("@column").is_a?(ActiveRecord::AttributeMethods::Serialization::Type) end end -- cgit v1.2.3