Refactor namesrvers controller, WIP with domain contacts

This commit is contained in:
Martin Lensment 2014-09-16 16:28:08 +03:00
parent 4c4c65d431
commit 168e6d2a01
8 changed files with 122 additions and 30 deletions

View file

@ -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