mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33: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
|
||||
|
||||
before_validation :to_upcase_country_code
|
||||
before_validation :val_prefix_code
|
||||
before_validation :prefix_code
|
||||
before_create :generate_auth_info
|
||||
|
||||
before_update :manage_emails
|
||||
|
@ -299,7 +299,7 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
|
||||
# rubocop:disable Metrics/CyclomaticComplexity
|
||||
def val_prefix_code
|
||||
def prefix_code
|
||||
return nil unless new_record?
|
||||
return nil if registrar.blank?
|
||||
code = self[:code]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue