From 37ca1b43af423e61d9b0e8e134c3c126ed754316 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 27 Feb 2014 11:33:25 -0800 Subject: we can't cache when the arguments are a hash --- activerecord/lib/active_record/core.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 941ff6bffd..7d81934526 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -148,7 +148,9 @@ module ActiveRecord hash = args.first - return super if hash.values.any? { |v| v.nil? || Array === v } + return super if hash.values.any? { |v| + v.nil? || Array === v || Hash === v + } key = hash.keys -- cgit v1.2.3