aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-09-11 15:11:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-09-11 15:11:28 -0700
commit3d60e9d5503b5f657336a8b7ee6345552ddb6c83 (patch)
tree9478a5d3c8c6ca2f9e13a78fd789cf44df39ed18 /activerecord/test
parentbca623bc5342007216ec9757c5192fef455e8a65 (diff)
parent975c9c9d4498a4b4a00de713e932abe3299a4007 (diff)
downloadrails-3d60e9d5503b5f657336a8b7ee6345552ddb6c83.tar.gz
rails-3d60e9d5503b5f657336a8b7ee6345552ddb6c83.tar.bz2
rails-3d60e9d5503b5f657336a8b7ee6345552ddb6c83.zip
Merge pull request #12188 from SamSaffron/master
Perf: avoid dupes add fallback logic for coders
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/serialized_attribute_test.rb2
1 files changed, 1 insertions, 1 deletions
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