# -*- encoding : utf-8 -*- module DiffHelper def render_diff(diff) diff_display ||= Diff::Display::Unified.new(diff.diff) #res = "" res = "" res += "" res += diff_display.render(Git::Diff::InlineCallback.new) res += "" res += "
" res.html_safe end end