summaryrefslogtreecommitdiff
path: root/app/models/sip_account.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:00:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:01:57 +0100
commit66a53a49705c269d73f9d51bb0d4a51283049c71 (patch)
tree39a04e944e45fe5dca90853b47a60ff776c092b4 /app/models/sip_account.rb
parent4594ac1559c6ecd534834b41b31d61c281d3401d (diff)
Changed softkey table to be sortable. #150
Diffstat (limited to 'app/models/sip_account.rb')
-rw-r--r--app/models/sip_account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/sip_account.rb b/app/models/sip_account.rb
index 444eb12..9ba1f8b 100644
--- a/app/models/sip_account.rb
+++ b/app/models/sip_account.rb
@@ -21,7 +21,7 @@ class SipAccount < ActiveRecord::Base
belongs_to :tenant
belongs_to :sip_domain
- has_many :softkeys, :dependent => :destroy
+ has_many :softkeys, :dependent => :destroy, :order => :position
has_many :voicemail_messages, :foreign_key => 'username', :primary_key => 'auth_name'