Remove unused Contact#generate_new_code!

#251
This commit is contained in:
Artur Beljajev 2016-12-12 04:21:35 +02:00
parent 23e8c90716
commit 5af4c585d4

View file

@ -384,13 +384,6 @@ class Contact < ActiveRecord::Base
end
# 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
Country.new(country_code)
end