lib/roda/plugins/hooks.rb in roda-3.16.0 vs lib/roda/plugins/hooks.rb in roda-3.17.0

- old
+ new

@@ -31,14 +31,9 @@ # of status, headers, and body. If it wants to change the response, # it must mutate this argument, calling <tt>response.status=</tt> inside # an after block will not affect the returned status. Note that after # hooks can be called with nil if an exception is raised during routing. module Hooks - def self.load_dependencies(app) - app.plugin :_before_hook - app.plugin :_after_hook - end - def self.configure(app) app.opts[:before_hook] ||= nil app.opts[:after_hook] ||= nil end