lib/roda/plugins/middleware.rb in roda-2.5.0 vs lib/roda/plugins/middleware.rb in roda-2.5.1

- old
+ new

@@ -72,10 +72,10 @@ end end # Override the route block so that if no route matches, we throw so # that the next middleware is called. - def route(&block) + def route(*args, &block) super do |r| res = instance_exec(r, &block) throw :next, true if r.forward_next res end