diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-12 13:07:17 +0000 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-12 13:07:17 +0000 |
commit | 1abd4544ad482079765be838dd6819e9997af9ac (patch) | |
tree | 6aa9c0f6e9ba2ee03e509a9858dc43cbafb25db6 /app/controllers | |
parent | 902447a1baf7e9d8385c269a601361c8c3f2f14b (diff) | |
parent | fb66a5e5a4c5d5f9eac4a5e8de6a286482cb55d5 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/route_elements_controller.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/route_elements_controller.rb b/app/controllers/route_elements_controller.rb index 9c6f2b7..9c9033e 100644 --- a/app/controllers/route_elements_controller.rb +++ b/app/controllers/route_elements_controller.rb @@ -44,14 +44,14 @@ 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 sort + #call_route = RouteElement.find(params[:route_element].first).call_route + + params[:route_element].each do |route_element_id| + @call_route.route_elements.find(route_element_id).move_to_bottom + end - def move_lower - @route_element.move_lower - redirect_to :back + render nothing: true end private |