diff options
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 14 | 
1 files changed, 3 insertions, 11 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 4f7261311..2b3b556c8 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -20,21 +20,17 @@ class TimeTablesController < ChouetteController    def new      @autocomplete_items = ActsAsTaggableOn::Tag.all      new! do -      build_breadcrumb :show       +      build_breadcrumb :show      end    end    def edit      edit! do -      build_breadcrumb :edit       +      build_breadcrumb :edit        @autocomplete_items = ActsAsTaggableOn::Tag.all      end    end -  def comment_filter -    @time_tables = filtered_time_tables     -  end -    def index      request.format.kml? ? @per_page = nil : @per_page = 12 @@ -43,7 +39,7 @@ class TimeTablesController < ChouetteController          if collection.out_of_bounds?            redirect_to params.merge(:page => 1)          end -        build_breadcrumb :index       +        build_breadcrumb :index        }      end    end @@ -65,10 +61,6 @@ class TimeTablesController < ChouetteController    protected -  def filtered_time_tables -    referential.time_tables.select{ |t| t.comment =~ /#{params[:q]}/i  } -  end -    def collection      ransack_params = params[:q]      # Hack to delete params can't be used by ransack | 
