summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-12 13:07:17 +0000
committerPeter Kozak <spag@golwen.net>2013-02-12 13:07:17 +0000
commit1abd4544ad482079765be838dd6819e9997af9ac (patch)
tree6aa9c0f6e9ba2ee03e509a9858dc43cbafb25db6 /app/models/call_route.rb
parent902447a1baf7e9d8385c269a601361c8c3f2f14b (diff)
parentfb66a5e5a4c5d5f9eac4a5e8de6a286482cb55d5 (diff)
Merge branch 'develop' of github.com:amooma/GS5 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