Skip to content

Instantly share code, notes, and snippets.

@nbarthelemy
Created April 15, 2009 15:16
Show Gist options
  • Save nbarthelemy/95832 to your computer and use it in GitHub Desktop.
Save nbarthelemy/95832 to your computer and use it in GitHub Desktop.
def countries
if defined?(I18n)
def countries
I18n.t(:countries)
end
countries
else
COUNTRIES
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment