Sha256: 8d008c6bb112a1222e93cc75d763c5c7e1602d38d538c5f9da1d1607ec5e7651
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
Spree::Address.class_eval do def validation_enabled? Spree::AvalaraPreference.address_validation.is_true? && country_validation_enabled? end def country_validation_enabled? Spree::Address.validation_enabled_countries.include?(country.try(:name)) end def self.validation_enabled_countries Spree::AvalaraPreference.validation_enabled_countries_array end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_avatax_certified-1.0.0 | app/models/spree/address_decorator.rb |