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