Fixed translation notification emails

This commit is contained in:
Godwin
2016-07-18 22:32:54 -07:00
parent 1b95a5eb3d
commit e57eba4157
4 changed files with 13 additions and 18 deletions
-7
View File
@@ -88,13 +88,6 @@ class UserMailer < ActionMailer::Base
@subject = (_'email.subject.workshop_translated',
"The #{@locale_name} translation for #{@workshop.title} has been modified",
vars: {language: @language_name, workshop_title: @workshop.title})
@data.each do |field, values|
diff = Diffy::Diff.new(values[:old], values[:new])
@data[field][:diff] = {
text: diff.to_s(:text),
html: diff.to_s(:html)
}
end
@wrapper_id = :full_width