diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/referential_vehicle_journeys_controller.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/app/controllers/referential_vehicle_journeys_controller.rb b/app/controllers/referential_vehicle_journeys_controller.rb index b07d6c600..c35a06087 100644 --- a/app/controllers/referential_vehicle_journeys_controller.rb +++ b/app/controllers/referential_vehicle_journeys_controller.rb @@ -12,6 +12,16 @@ class ReferentialVehicleJourneysController < ChouetteController    requires_feature :referential_vehicle_journeys +  def index +    if params[:q] && params[:q][:route_line_id_eq].present? +      @filtered_line = Chouette::Line +        .select(:id, :name) +        .find(params[:q][:route_line_id_eq]) +    end + +    index! +  end +    private    def collection | 
