Permalink
Browse files

fixing the list of cached columns

  • Loading branch information...
1 parent f26fcc0 commit 6c50c07d8dbb0b014e68608fe72f807cbe7f5c45 @tenderlove tenderlove committed Feb 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/test/cases/attribute_methods_test.rb
@@ -772,7 +772,9 @@ def title=(val); self.author_name = val; end
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

0 comments on commit 6c50c07

Please sign in to comment.