class RorVsWild::Local::Middleware
def inject_into(html)
def inject_into(html) if index = html.index("</body>") markup = File.read(File.join(LOCAL_FOLDER, "local.html.erb")) markup = ERB.new(markup).result(binding) markup = markup.html_safe if markup.respond_to?(:html_safe) html.insert(index, markup) end html rescue Encoding::UndefinedConversionError => ex log_incompatible_encoding_warning(ex) nil end