class Bullet::Rack
def append_to_html_body(response_body, content)
def append_to_html_body(response_body, content) body = response_body.dup content = content.html_safe if content.respond_to?(:html_safe) if body.include?('</body>') position = body.rindex('</body>') body.insert(position, content) else body << content end end