From 5af4c585d47c96bb00aed84bf18fe7b310598a2e Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 12 Dec 2016 04:21:35 +0200 Subject: [PATCH] Remove unused Contact#generate_new_code! #251 --- app/models/contact.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index 4899399f1..72c7a318f 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -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