module DiffHelper def render_diff(diff) diff_display ||= Diff::Display::Unified.new(diff.diff) res = "" res += "