Module: Conformista::Validations

Included in:
Defined in:


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.