aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-09 13:49:24 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-09 13:49:24 -0800
commit6c50c07d8dbb0b014e68608fe72f807cbe7f5c45 (patch)
treefb7d35b4f10936a6a95fc1a241ee80dfaf526510 /activerecord/test/cases/attribute_methods_test.rb
parentf26fcc05f605caaa120db6af4c0e908cf8eb20c9 (diff)
downloadrails-6c50c07d8dbb0b014e68608fe72f807cbe7f5c45.tar.gz
rails-6c50c07d8dbb0b014e68608fe72f807cbe7f5c45.tar.bz2
rails-6c50c07d8dbb0b014e68608fe72f807cbe7f5c45.zip
fixing the list of cached columns
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index e054980531..3ac2a76b96 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -772,7 +772,9 @@ class AttributeMethodsTest < ActiveRecord::TestCase
private
def cached_columns
- @cached_columns ||= time_related_columns_on_topic.map(&:name)
+ Topic.columns.find_all { |column|
+ !Topic.serialized_attributes.include? column.name
+ }.map(&:name)
end
def time_related_columns_on_topic