lib/rack/encoding_guard/middleware.rb in rack-encoding_guard-0.1.1 vs lib/rack/encoding_guard/middleware.rb in rack-encoding_guard-0.1.2

- old
+ new

@@ -16,10 +16,10 @@ private def resolve_strategy_object(strategy, options) case strategy - when nil then RejectStrategy.new(options) + when nil then SanitizeStrategy.new(options) when Class then strategy.new(options) when String then strategy.constantize.new(options) when Symbol class_name = "#{strategy.to_s.camelize}Strategy" EncodingGuard.const_get(class_name).new(options)