Module: Conformista::Validations

Included in:
FormObject
Defined in:
lib/conformista/validations.rb

Overview

Adds validation behaviour to ActiveModel-compliant objects. This means that objects this module is mixed into will only run save if it responds positively to valid?.

This model makes sure that all attributes are properly delegated before any validations run, and copies any presented model errors to the host object.

You can override how specific models are validated by overriding the validate_MODEL_NAME method.