diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-09 23:00:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-09 23:00:17 +0000 |
commit | 46f217b2988a03c977d074565a7d3ac17c789751 (patch) | |
tree | 2147831a477bf6563485c35219f14dd6f2b93f38 /actionpack/lib | |
parent | f7b0bc9ea3d2c729c9d0fbe07c2dbe65e8f6ff5c (diff) | |
download | rails-46f217b2988a03c977d074565a7d3ac17c789751.tar.gz rails-46f217b2988a03c977d074565a7d3ac17c789751.tar.bz2 rails-46f217b2988a03c977d074565a7d3ac17c789751.zip |
Removed deprecated form of calling xml_http_request/xhr without the first argument being the http verb [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/integration.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb index 80602489b9..2806485a98 100644 --- a/actionpack/lib/action_controller/integration.rb +++ b/actionpack/lib/action_controller/integration.rb @@ -183,16 +183,7 @@ module ActionController # parameters are +nil+, a hash, or a url-encoded or multipart string; # the headers are a hash. Keys are automatically upcased and prefixed # with 'HTTP_' if not already. - # - # This method used to omit the request_method parameter, assuming it - # was :post. This was deprecated in Rails 1.2.4. Always pass the request - # method as the first argument. def xml_http_request(request_method, path, parameters = nil, headers = nil) - unless request_method.is_a?(Symbol) - ActiveSupport::Deprecation.warn 'xml_http_request now takes the request_method (:get, :post, etc.) as the first argument. It used to assume :post, so add the :post argument to your existing method calls to silence this warning.' - request_method, path, parameters, headers = :post, request_method, path, parameters - end - headers ||= {} headers['X-Requested-With'] = 'XMLHttpRequest' headers['Accept'] = 'text/javascript, text/html, application/xml, text/xml, */*' |