diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 79999b63c..18d3faeb1 100755 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -115,13 +115,13 @@ def link_to_edit(record, options = {}) #---------------------------------------------------------------------------- def link_to_delete(record, options = {}) - confirm = options[:confirm] || nil + confirm = options[:confirm] || t(:confirm_delete, record.class.to_s.downcase) link_to(t(:delete) + "!", options[:url] || url_for(record), method: :delete, remote: true, - confirm: confirm) + data: { confirm: confirm}) end #----------------------------------------------------------------------------