aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/uri_parser.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-27 15:13:11 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-27 16:43:04 -0300
commit2f326b7f27349b933fe617d83b3f80c6573ce5d8 (patch)
treecea35ce13fe257fdad5c642681a2df0e4ffdcac2 /actionpack/lib/action_controller/uri_parser.rb
parent8be911c698aadd389b1607b4dbcea47001761536 (diff)
downloadrails-2f326b7f27349b933fe617d83b3f80c6573ce5d8.tar.gz
rails-2f326b7f27349b933fe617d83b3f80c6573ce5d8.tar.bz2
rails-2f326b7f27349b933fe617d83b3f80c6573ce5d8.zip
Remove warning "URI.unescape is obsolete" from actionpack.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_controller/uri_parser.rb')
-rw-r--r--actionpack/lib/action_controller/uri_parser.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/uri_parser.rb b/actionpack/lib/action_controller/uri_parser.rb
new file mode 100644
index 0000000000..8e2a3f69eb
--- /dev/null
+++ b/actionpack/lib/action_controller/uri_parser.rb
@@ -0,0 +1,9 @@
+require 'uri'
+
+module ActionController #:nodoc:
+ module UriParser
+ def uri_parser
+ @uri_parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI
+ end
+ end
+end