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

  has_many :route_elements, :dependent => :destroy

  validates :name,
  					:presence => true

  def to_s
    name.to_s
  end
end