Module: DynamicImage::Model::Validations

Extended by:
ActiveSupport::Concern
Included in:
DynamicImage::Model
Defined in:
lib/dynamic_image/model/validations.rb

Overview

DynamicImage Model Validations

Validates the image attributes. DynamicImage::Model manages all of them, so these mostly enforce integrity.

The two that can fail on ordinary input are the image itself, which is rejected if the data isn't readable in a supported format, and the crop, which has to fit within the image.

Defined Under Namespace

Modules: ClassMethods