Class: ActiveStorageValidations::ProcessableFileValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- ActiveStorageValidations::ProcessableFileValidator
- Defined in:
- lib/active_storage_validations/processable_file_validator.rb
Overview
:nodoc
Constant Summary collapse
- ERROR_TYPES =
%i[ file_not_processable ].freeze
- METADATA_KEYS =
%i[].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
22 23 24 25 26 |
# File 'lib/active_storage_validations/processable_file_validator.rb', line 22 def validate_each(record, attribute, _value) return if (record, attribute) (record, attribute, METADATA_KEYS) end |