diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-23 23:08:48 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-23 23:08:48 -0500 |
commit | 647c55ac43bdddc180d92b967089882da9d227cd (patch) | |
tree | 71c702fadafd90d914d541176c989b4c5dc2234b /activeresource/lib/active_resource | |
parent | 9dabbd0cfff95364d7d9e582b2a69fca2342c2b2 (diff) | |
download | rails-647c55ac43bdddc180d92b967089882da9d227cd.tar.gz rails-647c55ac43bdddc180d92b967089882da9d227cd.tar.bz2 rails-647c55ac43bdddc180d92b967089882da9d227cd.zip |
Prefer each instead of for in activeresource
Diffstat (limited to 'activeresource/lib/active_resource')
-rw-r--r-- | activeresource/lib/active_resource/http_mock.rb | 2 |
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 |