mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Refactor namesrvers controller, WIP with domain contacts
This commit is contained in:
parent
4c4c65d431
commit
168e6d2a01
8 changed files with 122 additions and 30 deletions
|
@ -5,4 +5,7 @@ class DomainContact < ActiveRecord::Base
|
|||
TECH = 'tech'
|
||||
ADMIN = 'admin'
|
||||
TYPES = [TECH, ADMIN]
|
||||
|
||||
scope :admin, -> { where(contact_type: ADMIN) }
|
||||
scope :tech, -> { where(contact_type: TECH) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue