aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-02-26 15:49:23 +0100
committerJohan Van Ryseghem2018-03-07 13:19:41 +0100
commit0e6909005c3d330608a9707703ce89080a9debc6 (patch)
tree5c3486d4a6e2bdc0567f94f48564f01c71038ea0
parent9ab833af378b725c92173e8c1ec05199518ff4c0 (diff)
downloadchouette-core-0e6909005c3d330608a9707703ce89080a9debc6.tar.bz2
VehicleJourney: Remove `.lines` method
This is no longer needed thanks to the `AutocompleteLinesController` and the AJAX filter in `app/views/referential_vehicle_journeys/_filters.html.slim`. Refs #5889
-rw-r--r--app/models/chouette/vehicle_journey.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/chouette/vehicle_journey.rb b/app/models/chouette/vehicle_journey.rb
index cdeac56dd..46522c354 100644
--- a/app/models/chouette/vehicle_journey.rb
+++ b/app/models/chouette/vehicle_journey.rb
@@ -408,11 +408,5 @@ module Chouette
')
.where('"time_tables_vehicle_journeys"."vehicle_journey_id" IS NULL')
end
-
- # TODO: delete this
- def self.lines
- lines_query = joins(:route).select("routes.line_id").reorder(nil).except(:group).pluck(:'routes.line_id')
- Chouette::Line.where(id: lines_query)
- end
end
end