diff options
| author | jpl | 2017-07-21 17:03:30 +0200 | 
|---|---|---|
| committer | jpl | 2017-07-21 17:03:38 +0200 | 
| commit | a0800acd0f650577a0be9f0002f9cfdd386eae7b (patch) | |
| tree | 033cbdc556883c4f9eb8ecd1c911dcd0cb6b57e9 /app/controllers/time_tables_controller.rb | |
| parent | ad269197f5c2c328d480aa5af52fb085d57b6cbc (diff) | |
| download | chouette-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.rb | 3 | 
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 | 
