Class: ParamSanitizer::Strategies::DowncaseStrategy
- Inherits:
-
Object
- Object
- ParamSanitizer::Strategies::DowncaseStrategy
- Defined in:
- lib/param_sanitizer/strategies/downcase_strategy.rb
Instance Method Summary collapse
Instance Method Details
#call(request) ⇒ Object
4 5 6 7 8 |
# File 'lib/param_sanitizer/strategies/downcase_strategy.rb', line 4 def call(request) request.params.each do |key, value| request.params[key] = value.downcase end end |