lib/react/server_rendering/bundle_renderer/console_replay.js
(function (history) {
if (history && history.length > 0) {
result += '\n<scr'+'ipt class="react-rails-console-replay">';
history.forEach(function (msg) {
result += '\nconsole.' + msg.level + '.apply(console, ' + JSON.stringify(msg.arguments) + ');';
});
result += '\n</scr'+'ipt>';
}
})(console.history);