# File lib/hoptoad_notifier/user_informer.rb, line 11 def call(env) status, headers, body = @app.call(env) if env['hoptoad.error_id'] && HoptoadNotifier.configuration.user_information new_body = [] body.each do |chunk| new_body << chunk.gsub("<!-- HOPTOAD ERROR -->", replacement(env['hoptoad.error_id'])) end headers['Content-Length'] = new_body.sum(&:length).to_s body = new_body end [status, headers, body] end
Generated with the Darkfish Rdoc Generator 2.