From 2dfad760fb74773bbc7795acaccd7dcaf34b78d0 Mon Sep 17 00:00:00 2001 From: schneems Date: Wed, 21 Mar 2018 15:34:54 -0500 Subject: [PATCH] Ensure Puma.stats_object available using handler When requiring only the handler puma.rb is not loaded. This defines a method that is used in the launcher https://github.com/puma/puma/pull/1532#discussion_r176171578. --- lib/rack/handler/puma.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rack/handler/puma.rb b/lib/rack/handler/puma.rb index 0bf06456..3ff18958 100644 --- a/lib/rack/handler/puma.rb +++ b/lib/rack/handler/puma.rb @@ -9,6 +9,7 @@ module Rack } def self.config(app, options = {}) + require 'puma' require 'puma/configuration' require 'puma/events' require 'puma/launcher'