mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
parent
23e8c90716
commit
5af4c585d4
1 changed files with 0 additions and 7 deletions
|
@ -384,13 +384,6 @@ class Contact < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/CyclomaticComplexity
|
# rubocop:enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
# used only for contact transfer
|
|
||||||
def generate_new_code!
|
|
||||||
return nil if registrar.blank?
|
|
||||||
registrar.reload # for contact transfer
|
|
||||||
self[:code] = "#{registrar.code}:#{SecureRandom.hex(4)}".upcase
|
|
||||||
end
|
|
||||||
|
|
||||||
def country
|
def country
|
||||||
Country.new(country_code)
|
Country.new(country_code)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue