From 1c60dcca735efc72b9218353ac255a50aad4e74b Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Tue, 19 Dec 2017 23:27:26 +0100 Subject: Use stop_areas count and not size to display stop_area counter --- app/views/stop_area_referentials/show.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim index d43333fd9..b562df5d5 100644 --- a/app/views/stop_area_referentials/show.html.slim +++ b/app/views/stop_area_referentials/show.html.slim @@ -7,7 +7,7 @@ .col-lg-12.text-right = link_to stop_area_referential_stop_areas_path(@stop_area_referential), class: 'btn btn-primary' do = Referential.human_attribute_name(:stop_areas) - em.small = " (#{@stop_area_referential.stop_areas.size})" + em.small = " (#{@stop_area_referential.stop_areas.count})" - page_header_content_for @stop_area_referential .page_content -- cgit v1.2.3