summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
commit421249fc702fa76fe68530a1ab8bdde910814c6f (patch)
treeaa6ed467ba56ea74b0061af4d06cfb9b853da489 /app/models/call_route.rb
parentaa5a2b806d117ffde9888e282c7100066156d94b (diff)
parentf8f35f666613eff24d3988bda1a22cc40ef2ab30 (diff)
Merge branch 'call_routes' into develop
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