From 26f1ef9537c0a0bc3fb49a22ed5879f2750613bd Mon Sep 17 00:00:00 2001 From: Georg Kahest Date: Fri, 28 Apr 2017 23:46:40 +0300 Subject: [PATCH] fix sorted_country list #489 --- lib/sorted_country.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sorted_country.rb b/lib/sorted_country.rb index e831c007b..8b69d951a 100644 --- a/lib/sorted_country.rb +++ b/lib/sorted_country.rb @@ -37,7 +37,7 @@ class SortedCountry def all_sorted_truncated @all_sorted_truncated ||= - all_sorted.map { |country| [truncate(name, length: 26), country.alpha2] } + all_sorted.map { |country| [country.name.truncate(26), country.alpha2] } end end end