diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-12 13:26:30 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-12 13:26:30 +0100 |
commit | f8f35f666613eff24d3988bda1a22cc40ef2ab30 (patch) | |
tree | aa6ed467ba56ea74b0061af4d06cfb9b853da489 /app/models/call_route.rb | |
parent | aa5a2b806d117ffde9888e282c7100066156d94b (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.rb | 2 |
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 |