mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Merge branch 'story/114871365-address-cc-upcase' into staging
This commit is contained in:
commit
ed477d4505
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,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
|
||||||
|
@ -307,7 +307,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