Sha256: 02e73752cd9a13aded14fbafb911e6c418d3842c5981bed5b1e03931718489b2
Contents?: true
Size: 236 Bytes
Versions: 13
Compression:
Stored size: 236 Bytes
Contents
module Of class OfferValidator < ActiveModel::Validator def validate(record) unless record.title.present? record.errors[:title] = 'Название не может быть пустым' end end end end
Version data entries
13 entries across 13 versions & 1 rubygems