infer_uniqueness_validation_for (DataMapper::Validate::AutoValidate)

    # File lib/dm-validations/auto_validate.rb, line 152
          def infer_uniqueness_validation_for(property, options)
            return unless property.options.key?(:unique)

            case value = property.options[:unique]
              when Array, Symbol
                options[:scope] = Array(value)

                validates_is_unique property.name, options_with_message(options, property, :is_unique)
              when TrueClass
                validates_is_unique property.name, options_with_message(options, property, :is_unique)
            end
          end