SamSaffron/MiniProfiler — pull request #25 by eviltrout (2012-04-09 19:27:05+00:00)
Title: ActionDispatch::Response issues

In a rails app, the body portion of the Rack response is an ActionDispatch::Response, which contains a body string, not an array or string.

This breaks MiniProfiler because it is expecting something that is either a String or responds to #push.

I adjusted the code so that it can work wtih an ActionDispatch::Response's contained body, or an array or string (which both respond to the << operator the same way). Additionally, this is faster for a string than the += method of appending as it does it in place rather than creating a new object.