From f8273e430916f8c7b0d21ad14aab90e427f8c0a6 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 15 May 2007 00:08:05 +0000 Subject: Shine some sunlight on the CGI extensions. Remove unused CGI#session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_controller/cgi_ext/cgi_ext.rb | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 actionpack/lib/action_controller/cgi_ext/cgi_ext.rb (limited to 'actionpack/lib/action_controller/cgi_ext/cgi_ext.rb') diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb b/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb deleted file mode 100644 index 06958272ab..0000000000 --- a/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'cgi' -require 'cgi/session' -require 'cgi/session/pstore' -require 'action_controller/cgi_ext/cgi_methods' - -# Wrapper around the CGIMethods that have been secluded to allow testing without -# an instantiated CGI object -class CGI #:nodoc: - class << self - alias :escapeHTML_fail_on_nil :escapeHTML - - def escapeHTML(string) - escapeHTML_fail_on_nil(string) unless string.nil? - end - end - - # Returns a parameter hash including values from both the request (POST/GET) - # and the query string with the latter taking precedence. - def parameters - request_parameters.update(query_parameters) - end - - def query_parameters - CGIMethods.parse_query_parameters(query_string) - end - - def request_parameters - CGIMethods.parse_request_parameters(params, env_table) - end - - def session(parameters = nil) - parameters = {} if parameters.nil? - parameters['database_manager'] = CGI::Session::PStore - CGI::Session.new(self, parameters) - end -end -- cgit v1.2.3