blob: 72cf72c75065494430e694f6487593c2a3ee9e3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class Gateway < ActiveRecord::Base
TECHNOLOGIES = ['sip']
attr_accessible :name, :technology, :inbound, :outbound, :description
has_many :gateway_settings, :dependent => :destroy
has_many :gateway_parameters, :dependent => :destroy
validates :name,
:presence => true,
:uniqueness => true
validates :technology,
:presence => true,
:inclusion => { :in => TECHNOLOGIES }
end
|