1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

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.
This commit is contained in:
schneems 2018-03-21 15:34:54 -05:00
parent 429d17bca1
commit 2dfad760fb

View file

@ -9,6 +9,7 @@ module Rack
} }
def self.config(app, options = {}) def self.config(app, options = {})
require 'puma'
require 'puma/configuration' require 'puma/configuration'
require 'puma/events' require 'puma/events'
require 'puma/launcher' require 'puma/launcher'