class Accountability::Types::BillingConfigurationTypes::BillingAddress

Public Instance Methods

validate_country_whitelisted() click to toggle source
# File lib/accountability/types/billing_configuration_types.rb, line 19
def validate_country_whitelisted
  return unless Configuration.country_whitelist.present?
  return if country.blank?

  errors.add(:country, :not_permitted) unless Configuration.country_whitelist.include? country
end