aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-02-27 11:33:25 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2014-02-27 11:33:25 -0800
commit37ca1b43af423e61d9b0e8e134c3c126ed754316 (patch)
treee854d54a9e37782e5fdaefaa92ed066cd2c9b8d5 /activerecord/lib/active_record/core.rb
parent26306420a6f483f23172d84176bf6aa57548651f (diff)
downloadrails-37ca1b43af423e61d9b0e8e134c3c126ed754316.tar.gz
rails-37ca1b43af423e61d9b0e8e134c3c126ed754316.tar.bz2
rails-37ca1b43af423e61d9b0e8e134c3c126ed754316.zip
we can't cache when the arguments are a hash
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 3 insertions, 1 deletions
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