lib/ensurance/hash_ensure.rb in ensurance-0.1.4 vs lib/ensurance/hash_ensure.rb in ensurance-0.1.5

- old
+ new

@@ -16,9 +16,11 @@ thing when "String" JSON.parse(thing) when "NilClass" nil + when "ActionController::UnfilteredParameters", "ActionController::Parameters" + thing.permit!.to_h else if thing.respond_to?(:to_h) begin thing.to_h rescue TypeError \ No newline at end of file