Sha256: cccf26ad017806a5b10f2a112c7d6fd07fefb82ae6db2b3552678f6aa26a76a8
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
module Einvoice module Validator module Neweb class PrintMarkValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) if value == "Y" && (record.carrier_id1.present? || record.carrier_id2.present? || record.donate_mark == "Y") record.errors.add attribute, options[:message] || :invalid end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
einvoice-0.2.0 | lib/einvoice/neweb/validator/print_mark_validator.rb |