Rails 4 updates

This commit is contained in:
Stephan Kaag
2013-07-23 20:42:52 +02:00
parent 0a7bbb08e1
commit f99acebdaa
10 changed files with 41 additions and 37 deletions

View File

@ -13,7 +13,7 @@ class DiffEngine
#
# returns: html containing decorations indicating the changes
def self.html_diff(html_before, html_after)
Diffy::Diff.new(html_before, html_after).to_s(:html)
Diffy::Diff.new(html_before, html_after, {allow_empty_diff: false}).to_s(:html)
end
# same as html diff, except that it operates on markdown