Sha256: 2e80911fcd0360b56ca5dd2193e294a0e162dc4ed66b636c8304b0ed6779250f
Contents?: true
Size: 252 Bytes
Versions: 4
Compression:
Stored size: 252 Bytes
Contents
module ActiveModel module Validations class SlugValidator < EachValidator def validate_each(record, attribute, value) unless value == value.parameterize record.errors.add(attribute) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems