mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
story#114871365 - revert prefix code name generation
This commit is contained in:
parent
2a7de9fbd6
commit
b682deeb9e
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class Contact < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
before_validation :to_upcase_country_code
|
before_validation :to_upcase_country_code
|
||||||
before_validation :val_prefix_code
|
before_validation :prefix_code
|
||||||
before_create :generate_auth_info
|
before_create :generate_auth_info
|
||||||
|
|
||||||
before_update :manage_emails
|
before_update :manage_emails
|
||||||
|
@ -299,7 +299,7 @@ class Contact < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/CyclomaticComplexity
|
# rubocop:disable Metrics/CyclomaticComplexity
|
||||||
def val_prefix_code
|
def prefix_code
|
||||||
return nil unless new_record?
|
return nil unless new_record?
|
||||||
return nil if registrar.blank?
|
return nil if registrar.blank?
|
||||||
code = self[:code]
|
code = self[:code]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue