module Clear::Validation::Helper

Direct including types

Defined in:

clear/model/validation/helper.cr

Macro Summary

Macro Detail

macro ensure_than(field, message, &block) #

Usage example:

ensure_than email, "must be an email" do |v|
  EmailRegexp.valid?(v)
end

[View source]
macro on_presence(*fields, &block) #

[View source]