Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Dragonfly::ActiveModelExtensions::Validations::PropertyValidator

Public Instance Methods

validate_each(model, attribute, attachment) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.