Method: Shoppe::AssociatedCountries#countries

Defined in:
lib/shoppe/associated_countries.rb

#countriesObject



14
15
16
17
# File 'lib/shoppe/associated_countries.rb', line 14

def countries
  return [] unless self.country_ids.is_a?(Array) && !self.country_ids.empty?
  Shoppe::Country.where(:id => self.country_ids)
end