diff options
| author | Marc Florisson | 2012-05-16 18:25:31 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-05-16 18:25:31 +0200 |
| commit | 8dd0e3ae02e8c90f3c18224ce0d3dc960bd4b0dc (patch) | |
| tree | 424d30c365561c712a26e368f4dca58e0d074f92 /app/controllers/stop_points_controller.rb | |
| parent | 70e4f9a603c9e2f7a33f5e2f24966935dd279db8 (diff) | |
| download | chouette-core-8dd0e3ae02e8c90f3c18224ce0d3dc960bd4b0dc.tar.bz2 | |
update ninoxe
Diffstat (limited to 'app/controllers/stop_points_controller.rb')
| -rw-r--r-- | app/controllers/stop_points_controller.rb | 5 |
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| |
