blob: 17c2202520b83d2c49ab4f1fa947402e675993a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class DialInNumberStore < ActiveRecord::Base
# Associations and Validations
#
validates_presence_of :dial_in_number_storeable_type
validates_presence_of :dial_in_number_storeable_id
belongs_to :dial_in_number_storeable, :polymorphic => true
validates_presence_of :dial_in_number_storeable
has_many :phone_numbers, :as => :phone_numberable, :dependent => :destroy
# Delegations:
#
delegate :tenant, :to => :dial_in_number_storeable, :allow_nil => true
end
|