blob: 21396ef6f32f64b33d46d2e94308934d1041919b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class PagerGroup < ActiveRecord::Base
attr_accessible :sip_account_id, :callback_url
has_many :pager_group_destinations, :dependent => :destroy
belongs_to :sip_account
validates_presence_of :sip_account_id
after_create :call
def call
self.sip_account.call("f-pager-#{self.id}")
end
end
|