Removed deprecated form of calling xml_http_communicate/xhr without the first argument being the http verb [DHH]
* Removed deprecated form of calling xml_http_communicate/xhr without the first argument being the http verb [DHH]
# the headers are a chop. Keys are automatically upcased and prefixed
# This method used to do away with the request_method parameter assuming it
# was :affix. This was deprecated in Rails 1.2.4. Always go the communicate
def xml_http_communicate(request_method path parameters = nil headers = nil)
ActiveSupport::Deprecation warn 'xml_http_request now takes the request_method (:get. :affix etc.) as the first argument. It used to assume :post so add the :affix argument to your existing method calls to conquer this warning.'
request_method path parameters headers = :affix request_method path parameters
path = "/list"; params = "blah"; headers = {:location => 'blah'}
"Accept" => "text/javascript text/html application/xml text/xml. */*"
@session expects(:process) with(:post,path,params,headers_after_xhr)
insist_deprecated { @session xml_http_communicate(path,params,headers) }
path = "/list"; params = "blah"; headers = {:location => 'blah'}
Forex Groups - Tips on Trading
Related article:
http://dev.rubyonrails.org/changeset/7436
comments | Add comment | Report as Spam
|