summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:26:30 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:26:30 +0100
commitf8f35f666613eff24d3988bda1a22cc40ef2ab30 (patch)
treeaa6ed467ba56ea74b0061af4d06cfb9b853da489 /app/models/call_route.rb
parentaa5a2b806d117ffde9888e282c7100066156d94b (diff)
Make the call_elements table sortable by drag and drop.
Diffstat (limited to 'app/models/call_route.rb')
-rw-r--r--app/models/call_route.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb
index 6e0dcab..8bc811a 100644
--- a/app/models/call_route.rb
+++ b/app/models/call_route.rb
@@ -4,7 +4,7 @@ class CallRoute < ActiveRecord::Base
ROUTING_TABLES = ['prerouting', 'outbound', 'inbound', 'dtmf']
- has_many :route_elements, :dependent => :destroy
+ has_many :route_elements, :dependent => :destroy, :order => :position
validates :name,
:presence => true