Skip to content
Browse files

Fix params class check

  • Loading branch information...
1 parent 6ec2f6a commit 95bd9c48ff0cdf09c546e38d55dfb7be7621a6ee @tfwright committed Feb 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/has_scope.rb
View
2 lib/has_scope.rb
@@ -140,7 +140,7 @@ def normalize_blanks(value) #:nodoc:
return value if value.nil?
if value.is_a?(Array)
value.select { |v| v.present? }
- elsif [Hash, HashWithIndifferentAccess].include?(value.class)
+ elsif value.is_a?(Hash)
value.select { |k, v| normalize_blanks(v).present? }
else
value

0 comments on commit 95bd9c4

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