app/models/alchemy/ingredient_validator.rb in alchemy_cms-7.0.7 vs app/models/alchemy/ingredient_validator.rb in alchemy_cms-7.0.8
- old
+ new
@@ -49,13 +49,13 @@
def validate(ingredient)
@ingredient = ingredient
validations.each do |validation|
if validation.respond_to?(:keys)
validation.map do |key, value|
- send("validate_#{key}", value)
+ send(:"validate_#{key}", value)
end
else
- send("validate_#{validation}")
+ send(:"validate_#{validation}")
end
end
end
private