From 9f988815907182dd9194d546b19ac4911c804d0e Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Thu, 26 Apr 2018 11:31:05 -0700 Subject: Refs #6433 Use ransackable scope for stop area status filter --- app/views/stop_areas/show.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/stop_areas/show.html.slim') diff --git a/app/views/stop_areas/show.html.slim b/app/views/stop_areas/show.html.slim index c10d22bfb..c1965c161 100644 --- a/app/views/stop_areas/show.html.slim +++ b/app/views/stop_areas/show.html.slim @@ -21,7 +21,7 @@ Chouette::StopArea.tmf('city_name') => @stop_area.city_name, Chouette::StopArea.tmf('country_code') => @stop_area.country_code.presence || '-', Chouette::StopArea.tmf('time_zone') => @stop_area.time_zone.presence || '-', - Chouette::StopArea.tmf('status') => stop_area_status(@stop_area), + Chouette::StopArea.tmf('status') => stop_area_status(@stop_area.status), Chouette::StopArea.tmf('comment') => @stop_area.try(:comment), }) - @stop_area.custom_fields.each do |code, field| -- cgit v1.2.3