Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Rocher rochers

View GitHub Profile
@rochers
rochers / gist:5d0b41cde0bb68ee47c3
Created Nov 6, 2014
Proposed new translation / methods for Carmen's country.rb
View gist:5d0b41cde0bb68ee47c3
class Country
....
def prepended_article
Carmen.i18n_backend.translate(path('prepended_article'))
end
def articlelized_common_name
prepended_article.blank? common_name : "#{article} #{common_name}"
You can’t perform that action at this time.