Permalink
Browse files

More bugfixes.

  • Loading branch information...
1 parent b961283 commit bbf7f274e19b05341773d7d47ed1e35cd793bde3 @awd-switzerland awd-switzerland committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/swissmatch/zipcodes.rb
@@ -196,9 +196,9 @@ def autocompleted_names(name)
# An array of ZipCode names suitable for presentation of a select.
def names_for_select(language=nil)
if language
- names = base.flat_map { |zip_code| [zip_code.name, zip_code.suggested_name(I18n.language)] }
+ names = flat_map { |zip_code| [zip_code.name, zip_code.suggested_name(I18n.language)] }
else
- names = base.map(&:name)
+ names = map(&:name)
end
names.uniq.sort(&Unicode.method(:strcmp))

0 comments on commit bbf7f27

Please sign in to comment.