diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-02-27 11:33:25 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-02-27 11:33:25 -0800 |
commit | 37ca1b43af423e61d9b0e8e134c3c126ed754316 (patch) | |
tree | e854d54a9e37782e5fdaefaa92ed066cd2c9b8d5 | |
parent | 26306420a6f483f23172d84176bf6aa57548651f (diff) | |
download | rails-37ca1b43af423e61d9b0e8e134c3c126ed754316.tar.gz rails-37ca1b43af423e61d9b0e8e134c3c126ed754316.tar.bz2 rails-37ca1b43af423e61d9b0e8e134c3c126ed754316.zip |
we can't cache when the arguments are a hash
-rw-r--r-- | activerecord/lib/active_record/core.rb | 4 |
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 |