summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-19 14:11:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-19 14:11:06 +0100
commit2a130f0ed2a5ada0fda15ee71cd600a25810dcb4 (patch)
tree72a79dace910769847082af114c3ef3183f5bb9f /app/controllers
parent3a0213af9ae9fab41dd854e94aa668ee2abc6414 (diff)
parentbcbfb154a321953fd32696065e6af1bec85f9345 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/call_routes_controller.rb10
-rw-r--r--app/controllers/route_elements_controller.rb10
2 files changed, 20 insertions, 0 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index cdb425b..5ef7c4b 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -42,6 +42,16 @@ class CallRoutesController < ApplicationController
redirect_to call_routes_url, :notice => t('call_routes.controller.successfuly_destroyed')
end
+ def move_higher
+ @call_route.move_higher
+ redirect_to :back
+ end
+
+ def move_lower
+ @call_route.move_lower
+ redirect_to :back
+ end
+
private
def call_route_parameter_params
params.require(:call_route).permit(:routing_table, :name, :endpoint_type, :endpoint_id)
diff --git a/app/controllers/route_elements_controller.rb b/app/controllers/route_elements_controller.rb
index 699fcc6..c4e4c1a 100644
--- a/app/controllers/route_elements_controller.rb
+++ b/app/controllers/route_elements_controller.rb
@@ -44,6 +44,16 @@ class RouteElementsController < ApplicationController
redirect_to call_route_route_elements_path(@call_route), :notice => t('route_elements.controller.successfuly_destroyed')
end
+ def move_higher
+ @route_element.move_higher
+ redirect_to :back
+ end
+
+ def move_lower
+ @route_element.move_lower
+ redirect_to :back
+ end
+
private
def spread_breadcrumbs
add_breadcrumb t("call_routes.index.page_title"), call_routes_path