diff options
Diffstat (limited to 'activerecord/lib/active_record/query_cache.rb')
-rw-r--r-- | activerecord/lib/active_record/query_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/query_cache.rb b/activerecord/lib/active_record/query_cache.rb index 191e5a3d97..e25335ecea 100644 --- a/activerecord/lib/active_record/query_cache.rb +++ b/activerecord/lib/active_record/query_cache.rb @@ -61,7 +61,7 @@ module ActiveRecord if result # perform a deep #dup in case result is an array - result = result.collect { |row| row.dup } if result.respond_to?(:collect) + result = result.collect { |row| row.dup } if result.is_a?(Array) result.dup else nil |