# File lib/dragonfly/active_model_extensions/validations.rb, line 7 def validate_each(model, attribute, attachment) if attachment property = attachment.send(property_name) model.errors.add(attribute, message(property, model)) unless matches?(property) end end