Class: FormKeeper::Constraint::Alnum
Instance Method Summary collapse
Instance Method Details
#validate(value, arg) ⇒ Object
225 226 227 228 229 |
# File 'lib/formkeeper.rb', line 225 def validate(value, arg) result = value =~ /^[[:alnum:]]+$/ result = !result if !arg !!result end |