module

Clear::Validation::Helper

Macros

ensure_than(field, message, &block)

DEPRECATED Use ensure_that instead

Source
ensure_that(field, message, &block)

Usage example:

ensure_that email, "must be an email" do |v|
  EmailRegexp.valid?(v)
end
Source
on_presence(*fields, &block)
Source