aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-24 08:07:49 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-24 08:07:49 -0700
commit408bbdcda15a5086033d78edc56fb364d88af368 (patch)
treebe46a238cf92fcec860f5189c9fcb3143340929d /activeresource
parent67e12eb3780cb1265671406ff742a0b0cd0d82b4 (diff)
parentf4d100bb5a93a9370535cb79b1edca659542f9d1 (diff)
downloadrails-408bbdcda15a5086033d78edc56fb364d88af368.tar.gz
rails-408bbdcda15a5086033d78edc56fb364d88af368.tar.bz2
rails-408bbdcda15a5086033d78edc56fb364d88af368.zip
Merge pull request #1267 from guilleiguaran/prefer-each-syntax
Prefer 'each' syntax instead of 'for in'
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