lib/roda/plugins/heartbeat.rb in roda-3.16.0 vs lib/roda/plugins/heartbeat.rb in roda-3.17.0
- old
+ new
@@ -14,13 +14,9 @@
#
# plugin :heartbeat, path: '/status'
module Heartbeat
HEARTBEAT_RESPONSE = [200, {'Content-Type'=>'text/plain'}.freeze, ['OK'.freeze].freeze].freeze
- def self.load_dependencies(app, opts=OPTS)
- app.plugin :_before_hook
- end
-
# Set the heartbeat path to the given path.
def self.configure(app, opts=OPTS)
app.opts[:heartbeat_path] = (opts[:path] || app.opts[:heartbeat_path] || "/heartbeat").dup.freeze
end