auto_generate_validations (DataMapper::Validate::AutoValidate)

    # File lib/dm-validations/auto_validate.rb, line 85
          def auto_generate_validations(property)
            return if disabled_auto_validations? || skip_auto_validation_for?(property)

            # all auto-validations (aside from presence) should skip
            # validation when the value is nil
            opts = { :allow_nil => true }

            if property.options.key?(:validates)
              opts[:context] = property.options[:validates]
            end

            infer_presence_validation_for(property, opts.dup)
            infer_length_validation_for(property, opts.dup)
            infer_format_validation_for(property, opts.dup)
            infer_uniqueness_validation_for(property, opts.dup)
            infer_within_validation_for(property, opts.dup)
            infer_type_validation_for(property, opts.dup)
          end