Sha256: d54ea7e7c3c796acb76691c6397daaf5dda26299f46286fdea0c332fc1c133df
Contents?: true
Size: 269 Bytes
Versions: 142
Compression:
Stored size: 269 Bytes
Contents
# frozen_string_literal: true module Renalware class AddressValidator < ActiveModel::Validator def validate(address) if address.uk? && address.postcode.blank? address.errors[:postcode] << "can't be blank for UK address" end end end end
Version data entries
142 entries across 142 versions & 1 rubygems