mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Remove unused method
This commit is contained in:
parent
a337604dc0
commit
5bcd846246
2 changed files with 0 additions and 13 deletions
1
.reek
1
.reek
|
@ -784,7 +784,6 @@ TooManyStatements:
|
|||
- DomainCron#self.start_expire_period
|
||||
- DomainCron#self.start_redemption_grace_period
|
||||
- DomainMailModel#domain_info
|
||||
- DomainTransfer#approve_as_client
|
||||
- Epp::Contact#add_legal_file_to_new
|
||||
- Epp::Contact#attrs_from
|
||||
- Epp::Contact#check_availability
|
||||
|
|
|
@ -38,18 +38,6 @@ class DomainTransfer < ActiveRecord::Base
|
|||
status == PENDING
|
||||
end
|
||||
|
||||
def approve_as_client
|
||||
transaction do
|
||||
self.status = DomainTransfer::CLIENT_APPROVED
|
||||
self.transferred_at = Time.zone.now
|
||||
save
|
||||
|
||||
domain.generate_auth_info
|
||||
domain.registrar = transfer_to
|
||||
domain.save(validate: false)
|
||||
end
|
||||
end
|
||||
|
||||
def notify_losing_registrar(contacts, registrant)
|
||||
transfer_from.messages.create!(
|
||||
body: I18n.t('domain_transfer_was_approved', contacts: contacts, registrant: registrant),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue