aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorjpl2017-07-21 17:03:30 +0200
committerjpl2017-07-21 17:03:38 +0200
commita0800acd0f650577a0be9f0002f9cfdd386eae7b (patch)
tree033cbdc556883c4f9eb8ecd1c911dcd0cb6b57e9 /app/controllers/time_tables_controller.rb
parentad269197f5c2c328d480aa5af52fb085d57b6cbc (diff)
downloadchouette-core-a0800acd0f650577a0be9f0002f9cfdd386eae7b.tar.bz2
RefsĀ #4134: fix autocomplete on TT edit tags
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index edeb5a32f..6849b1592 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -115,7 +115,8 @@ class TimeTablesController < ChouetteController
end
def tags
- @tags = ActsAsTaggableOn::Tag.where("tags.name = ?", "%#{params[:tag]}%")
+ # @tags = ActsAsTaggableOn::Tag.where("tags.name = ?", "%#{params[:tag]}%")
+ @tags = Chouette::TimeTable.tags_on(:tags)
respond_to do |format|
format.json { render :json => @tags.map{|t| {:id => t.id, :name => t.name }} }
end