Sha256: 9b061d83ff0885b3b6a6a1e34867edd48a871ca2670feda3d425d7200bcadd8a
Contents?: true
Size: 171 Bytes
Versions: 87
Compression:
Stored size: 171 Bytes
Contents
module Effective class SoldOutValidator < ActiveModel::Validator def validate(record) record.errors[:base] << "sold out" if record.sold_out? end end end
Version data entries
87 entries across 87 versions & 1 rubygems