summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:58:20 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:58:20 +0100
commit5a58c0c41de983a72cdacd06c5be80f120d1e080 (patch)
tree34b114f1a55b7b3aa5a2ae595c29abdad7169090 /app
parent5c3b76274cac5d1251614bee98ebe46825abe531 (diff)
Bugfix #157
Diffstat (limited to 'app')
-rw-r--r--app/controllers/call_routes_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 661ceba..3977132 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -1,11 +1,11 @@
class CallRoutesController < ApplicationController
authorize_resource :call_route, :except => [:sort]
- # before_filter { |controller|
- # if !params[:call_route].blank? and !params[:call_route][:endpoint_str].blank?
- # params[:call_route][:endpoint_type], delimeter, params[:call_route][:endpoint_id] = params[:call_route][:endpoint_str].partition('=')
- # end
- # }
+ before_filter { |controller|
+ if !params[:call_route].blank? && !params[:call_route][:endpoint_str].blank?
+ params[:call_route][:endpoint_type], delimeter, params[:call_route][:endpoint_id] = params[:call_route][:endpoint_str].partition('=')
+ end
+ }
def index
@call_routes = CallRoute.order([:routing_table, :position])