mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove 1.8 compatible code
This commit is contained in:
parent
1ea4a892a8
commit
f76340e42b
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module ActionDispatch
|
||||||
UNSAFE_FRAGMENT = Regexp.new("[^#{safe_fragment}]", false).freeze
|
UNSAFE_FRAGMENT = Regexp.new("[^#{safe_fragment}]", false).freeze
|
||||||
end
|
end
|
||||||
|
|
||||||
Parser = URI.const_defined?(:Parser) ? URI::Parser.new : URI
|
Parser = URI::Parser.new
|
||||||
|
|
||||||
def self.escape_path(path)
|
def self.escape_path(path)
|
||||||
Parser.escape(path.to_s, UriEscape::UNSAFE_SEGMENT)
|
Parser.escape(path.to_s, UriEscape::UNSAFE_SEGMENT)
|
||||||
|
|
Loading…
Reference in a new issue