aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorMichel Etienne2014-09-19 14:56:22 +0200
committerMichel Etienne2014-09-19 14:56:22 +0200
commit9bec29bc032934c60e23a01a6cfd4b1664aabc22 (patch)
tree528b7c105d0aeee7f437939d61cb0bf2a52aae66 /app/controllers/time_tables_controller.rb
parent4a278cad118f7110cc8304da6288e4e6b6047181 (diff)
parente07b540b2f19e5d89ec481ca478f175bc20e0e44 (diff)
downloadchouette-core-9bec29bc032934c60e23a01a6cfd4b1664aabc22.tar.bz2
Merge branch 'sismo' of github.com:afimb/chouette2 into sismo
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index 957603b3b..4f7261311 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -32,10 +32,7 @@ class TimeTablesController < ChouetteController
end
def comment_filter
- respond_to do |format|
- format.json { render :json => filtered_time_tables_maps}
- end
-
+ @time_tables = filtered_time_tables
end
def index
@@ -68,11 +65,6 @@ class TimeTablesController < ChouetteController
protected
- def filtered_time_tables_maps
- filtered_time_tables.collect do |time_table|
- { :id => time_table.id, :name => time_table_description(time_table) }
- end
- end
def filtered_time_tables
referential.time_tables.select{ |t| t.comment =~ /#{params[:q]}/i }
end