diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-17 13:16:52 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-17 13:55:42 -0200 |
commit | 6d2aadef9d3bc37c678fe60ffab4e0967be062d2 (patch) | |
tree | 160189aecbf69c7b5decd160ccd98d0e6fa75be7 | |
parent | b6a68737fb7f16fabff3a231e97adf42727e239a (diff) | |
download | rails-6d2aadef9d3bc37c678fe60ffab4e0967be062d2.tar.gz rails-6d2aadef9d3bc37c678fe60ffab4e0967be062d2.tar.bz2 rails-6d2aadef9d3bc37c678fe60ffab4e0967be062d2.zip |
Simplify helper method in attribute methods test
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 8b82b79219..1ae379769f 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -793,9 +793,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase private def cached_columns - Topic.columns.find_all { |column| - !Topic.serialized_attributes.include? column.name - }.map(&:name) + Topic.columns.map(&:name) - Topic.serialized_attributes.keys end def time_related_columns_on_topic |