Class: Gaku::Country

Inherits:
ActiveRecord::Base
  • Object
show all
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_nameObject



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_sObject



16
17
18
# File 'app/models/gaku/country.rb', line 16

def to_s
  i18n_name
end