class Sinatra::Base

def indifferent_hash

Creates a Hash with indifferent access.
def indifferent_hash
  Hash.new {|hash,key| hash[key.to_s] if Symbol === key }
end