From 02d78ac1d3ee81aefeb48b1475b3651ce32a7adc Mon Sep 17 00:00:00 2001 From: Matt Farnsworth Date: Wed, 25 Nov 2015 15:26:52 +0200 Subject: [PATCH] Story 108621138 - include domain name in msg body, updates a0ff1c99d04654cb861834b2b4fa91656cd22aad --- app/models/domain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/domain.rb b/app/models/domain.rb index ae433a993..a3986db08 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -329,7 +329,7 @@ class Domain < ActiveRecord::Base domain.destroy bye_bye = domain.versions.last domain.registrar.messages.create!( - body: "#{I18n.t(:domain_deleted)}: #{name}", + body: "#{I18n.t(:domain_deleted)}: #{domain.name}", attached_obj_id: bye_bye.id, attached_obj_type: bye_bye.class.to_s # DomainVersion )