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

- old
+ new

@@ -47,14 +47,10 @@ # method call takes precedence over the static_route method call for /foo. # As shown above, you can use Roda's routing tree methods inside the # static_route block to have shared behavior for different request methods, # while still handling the request methods differently. module StaticRouting - def self.load_dependencies(app) - app.plugin :_before_hook - end - def self.configure(app) app.opts[:static_routes] = {} end module ClassMethods @@ -98,10 +94,10 @@ private # Add a static route for the given method. def add_static_route(method, path, &block) - (opts[:static_routes][path] ||= {})[method] = block + (opts[:static_routes][path] ||= {})[method] = convert_route_block(block) end end module InstanceMethods private