Skip to content

Commit

Permalink
Merge pull request #803 from eileencodes/dont-pass-arguments-to-each
Browse files Browse the repository at this point in the history
Don't pass arguments to `#each`
  • Loading branch information
tenderlove committed Feb 19, 2015
2 parents 5ef7ee8 + c6095e8 commit 80d7b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/body_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def closed?
# We are applying this special case for #each only. Future bugs of this
# class will be handled by requesting users to patch their ruby
# implementation, to save adding too many methods in this class.
def each(*args, &block)
@body.each(*args, &block)
def each
@body.each { |body| yield body }
end

def method_missing(method_name, *args, &block)
Expand Down

0 comments on commit 80d7b72

Please sign in to comment.