class Jennifer::Validations::Uniqueness

Overview

Validates that the given field(s) of a record are unique for this type.

Defined in:

jennifer/validations/uniqueness.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Jennifer::Validations::Validator

blank_validation(record, field, value, allow_blank) blank_validation, validate(record, **opts) validate

Class Method Detail

def self.instance #

Validates that the given field(s) of a record are unique for this type.


[View source]

Instance Method Detail

def validate(record, **opts) #
Description copied from class Jennifer::Validations::Validator

Validates given record based on args and opts.


[View source]