aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/uri.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-01-19 19:38:23 +0900
committerkennyj <kennyj@gmail.com>2012-01-19 20:27:16 +0900
commitd8b06dc5c250f80687f3e9d5de77b6cdf106c8f0 (patch)
tree6cc58bd5657ea5413d51f59c4893252c81bf0130 /activesupport/lib/active_support/core_ext/uri.rb
parent04d6ebb467a449a5b56151de5fb13c41318d217a (diff)
downloadrails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.tar.gz
rails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.tar.bz2
rails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.zip
Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/uri.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/uri.rb b/activesupport/lib/active_support/core_ext/uri.rb
index 0b219ce44a..bfe0832b37 100644
--- a/activesupport/lib/active_support/core_ext/uri.rb
+++ b/activesupport/lib/active_support/core_ext/uri.rb
@@ -20,7 +20,7 @@ end
module URI
class << self
def parser
- @parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI
+ @parser ||= URI::Parser.new
end
end
end