Sha256: 7ad3531a08792e90e22cbb61762c5e30050faf4d6d24b684bee8173f5eb7f507
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module ActiveRecord module MySQL module Strict class Validation class TextValidation < Validation LIMIT = 65535 def apply model.validates field.name, 'ActiveRecord::MySQL::Strict::Validator::StrictLength' => { in: 0..(field.limit || LIMIT) }, allow_blank: true end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_mysql_strict-0.2.1 | lib/active_record/mysql/strict/validation/text_validation.rb |