module Granite::ValidationHelpers

Direct including types

Defined in:

granite/validation_helpers/blank.cr
granite/validation_helpers/choice.cr
granite/validation_helpers/exclusion.cr
granite/validation_helpers/inequality.cr
granite/validation_helpers/length.cr
granite/validation_helpers/nil.cr
granite/validation_helpers/uniqueness.cr

Macro Summary

Macro Detail

macro validate_exclusion(field, excluded_values) #

[View source]
macro validate_greater_than(field, amount, or_equal_to = false) #

[View source]
macro validate_is_blank(field) #

[View source]
macro validate_is_nil(field) #

[View source]
macro validate_is_valid_choice(field, choices) #

[View source]
macro validate_less_than(field, amount, or_equal_to = false) #

[View source]
macro validate_max_length(field, length) #

[View source]
macro validate_min_length(field, length) #

[View source]
macro validate_not_blank(field) #

[View source]
macro validate_not_nil(field) #

[View source]
macro validate_uniqueness(field) #

[View source]