mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't use deprecated String#each
This commit is contained in:
@@ -189,6 +189,8 @@ end_msg
|
||||
if @body.respond_to?(:call)
|
||||
@writer = lambda { |x| callback.call(x) }
|
||||
@body.call(self, self)
|
||||
elsif @body.is_a?(String)
|
||||
@body.each_line(&callback)
|
||||
else
|
||||
@body.each(&callback)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user