Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix params class check

  • Loading branch information...
commit 95bd9c48ff0cdf09c546e38d55dfb7be7621a6ee 1 parent 6ec2f6a
Floyd Wright authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/has_scope.rb
2  lib/has_scope.rb
@@ -140,7 +140,7 @@ def normalize_blanks(value) #:nodoc:
140 140 return value if value.nil?
141 141 if value.is_a?(Array)
142 142 value.select { |v| v.present? }
143   - elsif [Hash, HashWithIndifferentAccess].include?(value.class)
  143 + elsif value.is_a?(Hash)
144 144 value.select { |k, v| normalize_blanks(v).present? }
145 145 else
146 146 value

0 comments on commit 95bd9c4

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