Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing the list of cached columns

  • Loading branch information...
commit 6c50c07d8dbb0b014e68608fe72f807cbe7f5c45 1 parent f26fcc0
@tenderlove tenderlove authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/test/cases/attribute_methods_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.