class ActionDispatch::Routing::RouteSet

def extract_authentication(options)

def extract_authentication(options)
  if options[:user] && options[:password]
    [options.delete(:user), options.delete(:password)]
  else
    nil
  end
end