Module: Roda::RodaPlugins::PathRewriter::RequestMethods
- Defined in:
- lib/roda/plugins/path_rewriter.rb
Instance Method Summary collapse
-
#initialize(scope, env) ⇒ Object
Rewrite remaining_path and/or PATH_INFO based on the path rewrites.
Instance Method Details
#initialize(scope, env) ⇒ Object
Rewrite remaining_path and/or PATH_INFO based on the path rewrites.
88 89 90 91 92 93 94 95 |
# File 'lib/roda/plugins/path_rewriter.rb', line 88 def initialize(scope, env) path_info = env[PATH_INFO] rewrite_path(scope.class.opts[:path_info_rewrites], path_info) super remaining_path = @remaining_path = @remaining_path.dup rewrite_path(scope.class.opts[:remaining_path_rewrites], remaining_path) end |