mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Refactor
This commit is contained in:
parent
8b8a71c4d1
commit
f8c48a7456
3 changed files with 9 additions and 11 deletions
|
@ -2,5 +2,7 @@ class DomainContact < ActiveRecord::Base
|
|||
belongs_to :contact
|
||||
belongs_to :domain
|
||||
|
||||
scope :tech, -> {where(contact_type: :tech)}
|
||||
TECH = 'tech'
|
||||
ADMIN = 'admin'
|
||||
TYPES = [TECH, ADMIN]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue