This commit is contained in:
Martin Lensment 2014-08-25 11:26:43 +03:00
parent 8b8a71c4d1
commit f8c48a7456
3 changed files with 9 additions and 11 deletions

View file

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