Move template decision method to FD concern

This commit is contained in:
Alex Sherman 2020-11-04 17:11:46 +05:00
parent 7d6d53e420
commit a6702267e5
2 changed files with 6 additions and 6 deletions

View file

@ -19,6 +19,10 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
end
end
def notification_template
registrant.org? ? 'legal_person' : 'private_person'
end
def force_delete_scheduled?
statuses.include?(DomainStatus::FORCE_DELETE)
end