module ActionController::HttpAuthentication::Token

def params_array_from(raw_params)

Takes +raw_params+ and turns it into an array of parameters.
def params_array_from(raw_params)
  raw_params.map { |param| param.split %r/=(.+)?/ }
end