Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #12280 from kennyj/remove_1_8_compat

Remove 1.8 compatible code
  • Loading branch information...
commit fb2785ec3d97f0e3578e181012f18eda920dca10 2 parents cb8174c + f76340e
@josevalim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/journey/router/utils.rb
View
2  actionpack/lib/action_dispatch/journey/router/utils.rb
@@ -36,7 +36,7 @@ module UriEscape # :nodoc:
UNSAFE_FRAGMENT = Regexp.new("[^#{safe_fragment}]", false).freeze
end
- Parser = URI.const_defined?(:Parser) ? URI::Parser.new : URI
+ Parser = URI::Parser.new
def self.escape_path(path)
Parser.escape(path.to_s, UriEscape::UNSAFE_SEGMENT)
Please sign in to comment.
Something went wrong with that request. Please try again.