Merge branch 'story/114871365-address-cc-upcase' into staging

This commit is contained in:
Vladimir Krylov 2016-03-28 11:41:01 +03:00
commit ed477d4505

View file

@ -45,7 +45,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
@ -307,7 +307,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]