module ActionController::HttpAuthentication::Basic

def authenticate(request, &login_procedure)

def authenticate(request, &login_procedure)
  if has_basic_credentials?(request)
    login_procedure.call(*user_name_and_password(request))
  end
end