Browse files

Prefer each instead of for in activeresource

  • Loading branch information...
1 parent 9dabbd0 commit 647c55ac43bdddc180d92b967089882da9d227cd @guilleiguaran committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activeresource/lib/active_resource/http_mock.rb
View
2 activeresource/lib/active_resource/http_mock.rb
@@ -55,7 +55,7 @@ def initialize(responses)
@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

0 comments on commit 647c55a

Please sign in to comment.