lib/world_flags/helper/locale.rb in world-flags-0.4.7 vs lib/world_flags/helper/locale.rb in world-flags-0.4.8.2
- old
+ new
@@ -33,10 +33,10 @@
when :domain
extract_locale_from_tld # http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
when :browser
browser_locale # http://www.metamodpro.com/browser-language-codes
when :ip
- ip_country_code(browser_ip)
+ country_code_from_ip(browser_ip)
when :default
I18n.default_locale
end
end
\ No newline at end of file