mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Resolve some minor CC issues
This commit is contained in:
parent
e9f28a6d14
commit
3c7756680d
9 changed files with 11 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -11,4 +11,4 @@ class InactiveContacts
|
|||
yield contact if block_given?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue