Resolve some minor CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-09-02 16:31:26 +03:00
parent e9f28a6d14
commit 3c7756680d
No known key found for this signature in database
GPG key ID: C9DD647298A34764
9 changed files with 11 additions and 15 deletions

View file

@ -20,6 +20,7 @@ module Concerns
def archive
raise 'Contact cannot be archived' unless archivable?
destroy!
end
@ -35,4 +36,4 @@ module Concerns
end
end
end
end
end

View file

@ -240,8 +240,6 @@ class Contact < ApplicationRecord
contacts.id)')
end
private
def registrant_user_company_contacts(registrant_user)
ident = registrant_user.companies.collect(&:registration_number)

View file

@ -11,4 +11,4 @@ class InactiveContacts
yield contact if block_given?
end
end
end
end