summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
blob: e4230302965cf56f91af590e5080195287a8d983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CallRoute < ActiveRecord::Base
  attr_accessible :table, :name, :endpoint_type, :endpoint_id, :position

  has_many :route_elements, :dependent => :destroy

  validates :name,
  					:presence => true

  acts_as_list :scope => '`table` = \'#{table}\''

  def to_s
    name.to_s
  end
end