Class: CarrierWave::Validations::ActiveModel::ProcessingValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- CarrierWave::Validations::ActiveModel::ProcessingValidator
- Defined in:
- lib/carrierwave/validations/active_model.rb
Instance Method Summary collapse
Instance Method Details
#validate_each(record, attribute, value) ⇒ Object
13 14 15 16 17 |
# File 'lib/carrierwave/validations/active_model.rb', line 13 def validate_each(record, attribute, value) record.__send__("#{attribute}_processing_errors").each do |e| record.errors.add(attribute, :carrierwave_processing_error, message: (e. != e.class.to_s) && e.) end end |