Remove unused code

#569
This commit is contained in:
Artur Beljajev 2017-08-21 02:03:49 +03:00
parent d8118878b1
commit d4176b6979
5 changed files with 0 additions and 41 deletions

View file

@ -215,10 +215,6 @@ class Contact < ActiveRecord::Base
STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{counter} orphaned contacts\n" unless Rails.env.test?
end
def privs
where("ident_type = '#{PRIV}'")
end
def admin_statuses
[
SERVER_UPDATE_PROHIBITED,

View file

@ -9,7 +9,6 @@ class Registrar < ActiveRecord::Base
has_many :accounts
has_many :nameservers, through: :domains
has_many :whois_records
has_many :priv_contacts, -> { privs }, class_name: 'Contact'
has_many :white_ips, dependent: :destroy
delegate :balance, to: :cash_account, allow_nil: true