Class: Gaku::Country
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gaku::Country
- Defined in:
- app/models/gaku/country.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
12 13 14 |
# File 'app/models/gaku/country.rb', line 12 def <=>(other) name <=> other.name end |
#i18n_name ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'app/models/gaku/country.rb', line 20 def i18n_name carmen_country = Carmen::Country.coded(iso) if carmen_country carmen_country.name else name end end |
#to_s ⇒ Object
16 17 18 |
# File 'app/models/gaku/country.rb', line 16 def to_s i18n_name end |