Skip to content

Commit

Permalink
Merge pull request #46614 from Cofense/action_dispatch-response-buffe…
Browse files Browse the repository at this point in the history
…r-write-alias

Add `#<<` alias for `#write` to ActionDispatch::Response::Buffer
  • Loading branch information
byroot committed Dec 8, 2022
2 parents 2c503ae + 3eb8493 commit 51e9fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/action_dispatch/http/response.rb
Expand Up @@ -126,6 +126,7 @@ def write(string)
@response.commit!
@buf.push string
end
alias_method :<<, :write

def each(&block)
if @str_body
Expand Down

0 comments on commit 51e9fa9

Please sign in to comment.