Skip to content
Browse files

we can't cache when the arguments are a hash

  • Loading branch information...
1 parent 2630642 commit 37ca1b43af423e61d9b0e8e134c3c126ed754316 @tenderlove tenderlove committed Feb 27, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/lib/active_record/core.rb
View
4 activerecord/lib/active_record/core.rb
@@ -148,7 +148,9 @@ def find_by(*args)
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

0 comments on commit 37ca1b4

Please sign in to comment.
Something went wrong with that request. Please try again.