module Dragonfly::Model::Validations
Private Instance Methods
validates_property(property_name, options)
click to toggle source
# File lib/dragonfly/model/validations.rb, line 66 def validates_property(property_name, options) raise ArgumentError, "you need to provide the attribute which has the property, using :of => <attribute_name>" unless options[:of] validates_with PropertyValidator, options.merge(:attributes => [*options[:of]], :property_name => property_name) end