module ActionController::HttpAuthentication::Basic::ControllerMethods
def authenticate_or_request_with_http_basic(realm = nil, message = nil, &login_procedure)
def authenticate_or_request_with_http_basic(realm = nil, message = nil, &login_procedure) authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm || "Application", message) end