diff options
| author | Michel Etienne | 2014-05-02 11:32:02 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-05-02 11:32:02 +0200 |
| commit | f48ad8f1aa5ab9da55f4ea31bdbb293ba5f55bde (patch) | |
| tree | 549457fd46b4258ecb5cffa17fc1b143867b1fd4 | |
| parent | 62e398c96e60ecb1a424a7fbbde4022220441f69 (diff) | |
| download | chouette-core-f48ad8f1aa5ab9da55f4ea31bdbb293ba5f55bde.tar.bz2 | |
protection from out of bounds pages does not work
| -rw-r--r-- | app/controllers/vehicle_journeys_controller.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb index 0e8bca9cb..1746314f2 100644 --- a/app/controllers/vehicle_journeys_controller.rb +++ b/app/controllers/vehicle_journeys_controller.rb @@ -30,15 +30,15 @@ class VehicleJourneysController < ChouetteController update!(:alert => t('activerecord.errors.models.vehicle_journey.invalid_times')) end - def index - index! do |format| - format.html { - if collection.out_of_bounds? - redirect_to params.merge(:page => 1) - end - } - end - end +# def index +# index! do |format| +# format.html { +# if collection.out_of_bounds? +# redirect_to params.merge(:page => 1) +# end +# } +# end +# end # overwrite inherited resources to use delete instead of destroy |
