diff options
| author | Marc Florisson | 2014-09-22 18:19:44 +0200 | 
|---|---|---|
| committer | Marc Florisson | 2014-09-22 18:19:44 +0200 | 
| commit | 80c862d0e0806772abf3449778ba93bb91ff9161 (patch) | |
| tree | 87a538155f3adc0fd46c05ef436e254ac229e1bc /app/controllers/time_tables_controller.rb | |
| parent | 6e9b078adb6bc17633967eb75500b0a8dce65215 (diff) | |
| download | chouette-core-80c862d0e0806772abf3449778ba93bb91ff9161.tar.bz2 | |
extend tag selection
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 2b3b556c8..620bc98c0 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -67,7 +67,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? -    selected_time_tables = tag_search ? select_time_tables.tagged_with(tag_search) : select_time_tables +    selected_time_tables = tag_search ? select_time_tables.tagged_with(tag_search, :wild => true, :any => true) : select_time_tables      @q = selected_time_tables.search(ransack_params)      @time_tables ||= @q.result(:distinct => true).order(:comment).paginate(:page => params[:page])    end | 
