Class: ActiveStorageValidations::ProcessableImageValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- ActiveStorageValidations::ProcessableImageValidator
- Defined in:
- lib/active_storage_validations/processable_image_validator.rb
Overview
:nodoc
Constant Summary collapse
- ERROR_TYPES =
%i[ image_not_processable ].freeze
Constants included from ASVAnalyzable
ASVAnalyzable::DEFAULT_IMAGE_PROCESSOR
Instance Method Summary collapse
Methods included from ASVErrorable
#add_error, #initialize_error_options
Instance Method Details
#validate_each(record, attribute, _value) ⇒ Object
21 22 23 24 25 |
# File 'lib/active_storage_validations/processable_image_validator.rb', line 21 def validate_each(record, attribute, _value) return if (record, attribute) (record, attribute) end |