app/models/phcmemberspro/members/contact.rb in phcmemberspro-2.1.2 vs app/models/phcmemberspro/members/contact.rb in phcmemberspro-2.1.3
- old
+ new
@@ -5,11 +5,11 @@
def self.scoped_to(account)
where(:account_id => account.id)
end
# Translate Country Code to Name
- def mccountry
- country = ISO3166::Country[country_code]
+ def country_name
+ country = ISO3166::Country[mccountry]
country.translations[I18n.locale.to_s] || country.name
end
# Model Relationships
belongs_to :main, class_name: 'Members::Main'