module Roda::RodaPlugins::IndifferentParams::InstanceMethods

def indifferent_params(params)

other values alone.
hashes to support indifferent access, leaving
Recursively process the request params and convert
def indifferent_params(params)
  case params 
  when Hash
    hash = Hash.new{|h, k| h[k.to_s] if Symbol === k}
    params.each{|k, v| hash[k] = indifferent_params(v)}
    hash
  when Array
    params.map{|x| indifferent_params(x)}
  else
    params
  end
end

def params

convert symbols to strings.
A copy of the request params that will automatically
def params
  @_params ||= indifferent_params(request.params)
end