module ActionController::HttpAuthentication::Basic::ControllerMethods

def authenticate_or_request_with_http_basic(realm = "Application", &login_procedure)

def authenticate_or_request_with_http_basic(realm = "Application", &login_procedure)
  authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm)
end