lib/world_flags/helper/locale.rb in world-flags-0.3.0 vs lib/world_flags/helper/locale.rb in world-flags-0.3.1
- old
+ new
@@ -5,10 +5,10 @@
I18n.locale = locales.select_first_in(valid_locales.downcase)
end
def valid_locales
if I18n.respond_to?(:available_locales) && I18n.available_locales.present?
- I18n.available_locales
+ I18n.available_locales
else
WorldFlags.valid_locales
end
end
\ No newline at end of file