| Class | ActionController::Routing::RouteSet |
| In: |
lib/123.rb
lib/20.rb lib/23.rb |
| Parent: | Object |
| recognize_path | -> | old_recognize_path |
Changes to request_uri to include the BASE_URL cause the route recognition to break. This method simply removes the BASE_URL if it‘s found and then passes it on to the original recognize_path method.
# File lib/20.rb, line 77
77: def recognize_path(path, environment={})
78:
79: path = CGI.unescape(path)
80:
81: path = path.gsub(BASE_URL, "") if ActionController::check_mode_and_base
82:
83: old_recognize_path(path, environment)
84: end
Changes to request_uri to include the BASE_URL cause the route recognition to break. This method simply removes the BASE_URL if it‘s found and then passes it on to the original recognize_path method.
# File lib/123.rb, line 74
74: def recognize_path(path, environment={})
75: path = CGI.unescape(path)
76: path = path.gsub(BASE_URL, "") if ActionController::check_mode_and_base
77: old_recognize_path(path, environment)
78: end
Changes to request_uri to include the BASE_URL cause the route recognition to break. This method simply removes the BASE_URL if it‘s found and then passes it on to the original recognize_path method.
# File lib/23.rb, line 78
78: def recognize_path(path, environment={})
79:
80: path = CGI.unescape(path)
81:
82: path = path.gsub(BASE_URL, "") if ActionController::check_mode_and_base
83:
84: old_recognize_path(path, environment)
85: end