Rename notifications.body to text

This commit is contained in:
Artur Beljajev 2018-08-23 21:26:33 +03:00
parent 8765baf319
commit dfff6f6d12
16 changed files with 30 additions and 22 deletions

View file

@ -626,7 +626,7 @@ class Epp::Domain < Domain
if dt.pending?
registrar.notifications.create!(
body: I18n.t('transfer_requested'),
text: I18n.t('transfer_requested'),
attached_obj_id: dt.id,
attached_obj_type: dt.class.to_s
)
@ -728,7 +728,7 @@ class Epp::Domain < Domain
return false unless valid?
registrar.notifications.create!(
body: 'Key Relay action completed successfully.',
text: 'Key Relay action completed successfully.',
attached_obj_type: kr.class.to_s,
attached_obj_id: kr.id
)