1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't use deprecated String#each

This commit is contained in:
Jeremy Kemper 2008-06-06 22:02:23 -07:00
parent 84fb971c2f
commit 5eb893f72d

View file

@ -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