diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-09 12:08:07 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-09 12:08:07 -0800 |
commit | f26fcc05f605caaa120db6af4c0e908cf8eb20c9 (patch) | |
tree | d0b88bbd5572be70994d20119f1dd8815291b659 /activerecord/test/cases | |
parent | f86b19842620301b969a4a264c97e5e6ebc7b67f (diff) | |
download | rails-f26fcc05f605caaa120db6af4c0e908cf8eb20c9.tar.gz rails-f26fcc05f605caaa120db6af4c0e908cf8eb20c9.tar.bz2 rails-f26fcc05f605caaa120db6af4c0e908cf8eb20c9.zip |
only exclude serialized columns from cacheable columns
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index d6de668a17..e054980531 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -776,7 +776,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase end def time_related_columns_on_topic - Topic.columns.select { |c| c.type.in?([:time, :date, :datetime, :timestamp]) } + Topic.columns.select { |c| [:time, :date, :datetime, :timestamp].include?(c.type) } end def in_time_zone(zone) |