aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/stop_points_controller.rb
diff options
context:
space:
mode:
authorMarc Florisson2012-05-16 18:25:31 +0200
committerMarc Florisson2012-05-16 18:25:31 +0200
commit8dd0e3ae02e8c90f3c18224ce0d3dc960bd4b0dc (patch)
tree424d30c365561c712a26e368f4dca58e0d074f92 /app/controllers/stop_points_controller.rb
parent70e4f9a603c9e2f7a33f5e2f24966935dd279db8 (diff)
downloadchouette-core-8dd0e3ae02e8c90f3c18224ce0d3dc960bd4b0dc.tar.bz2
update ninoxe
Diffstat (limited to 'app/controllers/stop_points_controller.rb')
-rw-r--r--app/controllers/stop_points_controller.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/stop_points_controller.rb b/app/controllers/stop_points_controller.rb
index ae6bbd09a..bfd229dd7 100644
--- a/app/controllers/stop_points_controller.rb
+++ b/app/controllers/stop_points_controller.rb
@@ -12,10 +12,9 @@ class StopPointsController < ChouetteController
alias_method :route, :parent
def sort
- begin
- route.reorder!( params[:stop_point])
+ if route.reorder!( params[:stop_point])
flash[:notice] = t("stop_points.reorder_success")
- rescue => e
+ else
flash[:alert] = t("stop_points.reorder_failure")
end
respond_to do |format|