aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorMarc Florisson2014-09-19 18:29:06 +0200
committerMarc Florisson2014-09-19 18:29:06 +0200
commitc1fe600970a810d6116077c2b77370567cf92eaa (patch)
treea899a81f6b7422fb744804fd80697767452201ad /app/controllers/time_tables_controller.rb
parent9bec29bc032934c60e23a01a6cfd4b1664aabc22 (diff)
downloadchouette-core-c1fe600970a810d6116077c2b77370567cf92eaa.tar.bz2
remove comment_filter path on time table resource
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb14
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