app/models/spree/zone_decorator.rb
# Check for whether an address.zipcode is available
Check for whether an address.zipcode is available
Check for whether an address . zipcode is available
def include?(address)
    return false unless address
    members.any? do |zone_member|
      case zone_member.zoneable_type
      when "Spree::Country"
        zone_member.zoneable_id == address.country_id
      when "Spree::State"
        zone_member == address.state_id
      when "Spree::ZipCode"
        zone_member.zoneable.name == address.zipcode
      else
        false
      end
    end
  end
def include? ( address ) return false unless address members . any? do | zone_member | case zone_member . zoneable_type when "Spree::Country" zone_member . zoneable_id == address . country_id when "Spree::State" zone_member == address . state_id when "Spree::ZipCode" zone_member . zoneable . name == address . zipcode else false end end end
Check for whether an address.zipcode is available
Check for whether an address . zipcode is available
address