aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMichel Etienne2014-08-12 16:59:23 +0200
committerMichel Etienne2014-08-12 16:59:23 +0200
commit6fa03cfc0be70dfb5dc2566d1613027063cdfeb3 (patch)
treec1281b7f4316984a670fd20a06e1521f6a78d23f /app/controllers
parent2a5190da6ae7608041e6adec970fb1190d866b5c (diff)
downloadchouette-core-6fa03cfc0be70dfb5dc2566d1613027063cdfeb3.tar.bz2
combine time_table in modal form
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/time_tables_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index e1d070f94..ea08bb487 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -73,7 +73,7 @@ class TimeTablesController < ChouetteController
tag_search = ransack_params["tag_search"].split(",").collect(&:strip) if ransack_params.present? && ransack_params["tag_search"].present?
ransack_params.delete("tag_search") if ransack_params.present?
- select_time_tables = tag_search ? referential.time_tables.tagged_with(tag_search, :match_all => true) : referential.time_tables
+ select_time_tables = tag_search ? referential.time_tables.tagged_with(tag_search) : referential.time_tables
@q = select_time_tables.search(ransack_params)
@time_tables ||= @q.result(:distinct => true).order(:comment).paginate(:page => params[:page])
end