aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-23 23:08:48 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-23 23:08:48 -0500
commit647c55ac43bdddc180d92b967089882da9d227cd (patch)
tree71c702fadafd90d914d541176c989b4c5dc2234b /activeresource
parent9dabbd0cfff95364d7d9e582b2a69fca2342c2b2 (diff)
downloadrails-647c55ac43bdddc180d92b967089882da9d227cd.tar.gz
rails-647c55ac43bdddc180d92b967089882da9d227cd.tar.bz2
rails-647c55ac43bdddc180d92b967089882da9d227cd.zip
Prefer each instead of for in activeresource
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/lib/active_resource/http_mock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/http_mock.rb b/activeresource/lib/active_resource/http_mock.rb
index e90580be4f..6167c1420e 100644
--- a/activeresource/lib/active_resource/http_mock.rb
+++ b/activeresource/lib/active_resource/http_mock.rb
@@ -55,7 +55,7 @@ module ActiveResource
@responses = responses
end
- for method in [ :post, :put, :get, :delete, :head ]
+ [ :post, :put, :get, :delete, :head ].each do |method|
# def post(path, request_headers = {}, body = nil, status = 200, response_headers = {})
# @responses[Request.new(:post, path, nil, request_headers)] = Response.new(body || "", status, response_headers)
# end