summaryrefslogtreecommitdiff
path: root/app/controllers/call_routes_controller.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
commit636be20a183fac10637fea700f55f89bc371577b (patch)
tree0ccfad9b5ddbaf761dd1121962d2dd5977c4ba93 /app/controllers/call_routes_controller.rb
parent049b3e62c2ad3e0affac17214baa38afb994b6ba (diff)
Refactoring and bugfixes.
Diffstat (limited to 'app/controllers/call_routes_controller.rb')
-rw-r--r--app/controllers/call_routes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 779e23c..661ceba 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -1,5 +1,5 @@
class CallRoutesController < ApplicationController
- authorize_resource :call_route
+ authorize_resource :call_route, :except => [:sort]
# before_filter { |controller|
# if !params[:call_route].blank? and !params[:call_route][:endpoint_str].blank?
@@ -67,6 +67,7 @@ class CallRoutesController < ApplicationController
def sort
params[:call_route].each_with_index do |id, index|
CallRoute.update_all({position: index+1}, {id: id})
+ #CallRoute.find(:id).move_to_bottom
end
render nothing: true
end