diff options
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index a9f799e9d..00109aa76 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -18,6 +18,19 @@ class TimeTablesController < ChouetteController    end +  def index     +    request.format.kml? ? @per_page = nil : @per_page = 12 + +    index! do |format| +      format.html { +        if collection.out_of_bounds? +          redirect_to params.merge(:page => 1) +        end +      } +    end        +  end + +    protected    def filtered_time_tables_maps | 
