diff options
author | spag <spag@golwen.net> | 2013-01-17 21:51:58 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-17 21:51:58 +0100 |
commit | 17206a20e5bcb44fa4d90f0e176f7aa0fe43bca3 (patch) | |
tree | b16465034b16d2b1e00dc6ecf899f9fa063f0549 /app/models | |
parent | b800f7c7ec5aa65f773d1c91c1418ca5edac0f2c (diff) |
rename_column table to routing_table
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/call_route.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb index f6a3dd3..0df961d 100644 --- a/app/models/call_route.rb +++ b/app/models/call_route.rb @@ -1,7 +1,7 @@ class CallRoute < ActiveRecord::Base ROUTING_TABLES = ['prerouting', 'outbound', 'inbound'] - attr_accessible :table, :name, :endpoint_type, :endpoint_id, :position + attr_accessible :routing_table, :name, :endpoint_type, :endpoint_id, :position has_many :route_elements, :dependent => :destroy @@ -12,7 +12,7 @@ class CallRoute < ActiveRecord::Base :presence => true, :inclusion => { :in => ROUTING_TABLES } - acts_as_list :scope => '`table` = \'#{table}\'' + acts_as_list :scope => '`routing_table` = \'#{routing_table}\'' def to_s name.to_s |