lib/roda.rb in roda-2.17.0 vs lib/roda.rb in roda-2.18.0

- old
+ new

@@ -507,10 +507,16 @@ end # The current path to match requests against. attr_reader :remaining_path + # An alias of remaining_path. If a plugin changes remaining_path then + # it should override this method to return the untouched original. + def real_remaining_path + remaining_path + end + # Match POST requests. If no arguments are provided, matches all POST # requests, otherwise, matches only POST requests where the arguments # given fully consume the path. def post(*args, &block) _verb(args, &block) if post? @@ -623,10 +629,10 @@ # This updates SCRIPT_NAME/PATH_INFO based on the current remaining_path # before dispatching to another rack app, so the app still works as # a URL mapper. def run(app) e = @env - path = @remaining_path + path = real_remaining_path sn = SCRIPT_NAME pi = PATH_INFO script_name = e[sn] path_info = e[pi] begin