Skip to content

Commit

Permalink
fixing the list of cached columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 9, 2012
1 parent f26fcc0 commit 6c50c07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion activerecord/test/cases/attribute_methods_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6c50c07

Please sign in to comment.