lib/vidibus/secure.rb in vidibus-secure-0.1.0 vs lib/vidibus/secure.rb in vidibus-secure-0.1.1

- old
+ new

@@ -143,10 +143,10 @@ # # => 1:some:2:are:params|2:nested:3:really:4:serious:|4:stuff: # def params_identifier(params, level = 1) array = [] for key, value in params - if [Array, Hash].include?(value.class) + if value.is_a?(Array) or value.is_a?(Hash) value = params_identifier(value, level + 1) end array << "#{level}:#{key}:#{value}" end array.sort.join("|")