aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/vehicle_journeys_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb
index e72145c1e..71787ba78 100644
--- a/app/controllers/vehicle_journeys_controller.rb
+++ b/app/controllers/vehicle_journeys_controller.rb
@@ -84,7 +84,7 @@ class VehicleJourneysController < ChouetteController
def collection
scope = route.vehicle_journeys.with_stops
scope = maybe_filter_by_departure_time(scope)
- scope = maybe_filter_without_time_tables(scope)
+ scope = maybe_filter_out_journeys_with_time_tables(scope)
@q = scope.search filtered_ransack_params
@@ -110,11 +110,11 @@ class VehicleJourneysController < ChouetteController
scope
end
- def maybe_filter_without_time_tables(scope)
+ def maybe_filter_out_journeys_with_time_tables(scope)
if params[:q] &&
- params[:q][:vehicle_journey_without_time_table] == 'false'
+ params[:q][:vehicle_journey_without_time_table] == 'true'
return scope
- .exclude_journeys_without_time_tables
+ .without_time_tables
end
scope