From 0631400b4a39e45a248caf4785cb3196f6206e9a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 13 Mar 2007 04:32:45 +0000 Subject: Deprecation: remove deprecated request methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../deprecated_request_methods.rb | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 actionpack/lib/action_controller/deprecated_request_methods.rb (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/deprecated_request_methods.rb b/actionpack/lib/action_controller/deprecated_request_methods.rb deleted file mode 100644 index 93663bdda4..0000000000 --- a/actionpack/lib/action_controller/deprecated_request_methods.rb +++ /dev/null @@ -1,34 +0,0 @@ -module ActionController - class AbstractRequest - # Determine whether the body of a HTTP call is URL-encoded (default) - # or matches one of the registered param_parsers. - # - # For backward compatibility, the post format is extracted from the - # X-Post-Data-Format HTTP header if present. - def post_format - case content_type - when Mime::XML - :xml - when Mime::YAML - :yaml - else - :url_encoded - end - end - - # Is this a POST request formatted as XML or YAML? - def formatted_post? - post? && (post_format == :yaml || post_format == :xml) - end - - # Is this a POST request formatted as XML? - def xml_post? - post? && post_format == :xml - end - - # Is this a POST request formatted as YAML? - def yaml_post? - post? && post_format == :yaml - end - end -end -- cgit v1.2.3