Class: Phcmemberspro::Members::Business
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Phcmemberspro::Members::Business
- Defined in:
- app/models/phcmemberspro/members/business.rb
Instance Method Summary collapse
-
#country_name ⇒ Object
Translate Country Code to Name.
Instance Method Details
#country_name ⇒ Object
Translate Country Code to Name
8 9 10 11 |
# File 'app/models/phcmemberspro/members/business.rb', line 8 def country_name country = ISO3166::Country[mccountry] country.translations[I18n.locale.to_s] || country.name end |