class Avram::Operation
- Avram::Operation
- Reference
- Object
Included Modules
Direct Known Subclasses
Defined in:
avram/operation.crConstant Summary
-
ATTRIBUTES =
[] of Nil
Constructors
Class Method Summary
Instance Method Summary
Macro Summary
Instance methods inherited from module Avram::SaveOperationErrors
errors : Hash(Symbol, Array(String))
errors
Instance methods inherited from module Avram::Validations
validate_acceptance_of(attribute : Avram::Attribute(Bool | Nil), message : Avram::Attribute::ErrorMessage = "must be accepted")
validate_acceptance_of,
validate_at_most_one_filled(*attributes, message : Avram::Attribute::ErrorMessage = "must be blank")
validate_at_most_one_filled,
validate_confirmation_of(attribute : Avram::Attribute(T), with confirmation_attribute : Avram::Attribute(T), message : Avram::Attribute::ErrorMessage = "must match") forall T
validate_confirmation_of,
validate_exactly_one_filled(*attributes, message : Avram::Attribute::ErrorMessage = "at least one must be filled")
validate_exactly_one_filled,
validate_inclusion_of(attribute : Avram::Attribute(T), in allowed_values : Enumerable(T), message : Avram::Attribute::ErrorMessage = "is invalid", allow_nil : Bool = false) forall T
validate_inclusion_of,
validate_required(*attributes, message : Avram::Attribute::ErrorMessage = "is required")
validate_required,
validate_size_of(attribute : Avram::Attribute, min = nil, max = nil, allow_nil : Bool = false)validate_size_of(attribute : Avram::Attribute, *, is exact_size, message : Avram::Attribute::ErrorMessage = "is invalid", allow_nil : Bool = false) validate_size_of, validate_uniqueness_of(attribute : Avram::Attribute, query : Avram::Criteria, message : String = "is already taken")
validate_uniqueness_of(attribute : Avram::Attribute, message : Avram::Attribute::ErrorMessage = "is already taken") validate_uniqueness_of