blob: 449ba390df9e02dd49dd9e0ddb3b9dd90a2defc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class PhoneSipAccount < ActiveRecord::Base
attr_accessible :sip_account_id
belongs_to :phone
belongs_to :sip_account
validates_presence_of :phone
validates_presence_of :sip_account
validates_uniqueness_of :sip_account_id, :scope => :phone_id
acts_as_list :scope => :phone
def to_s
"Position #{self.position}"
end
end
|