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