From e58f41af2d1f8193e4a54895d86941b2bed82ec8 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 18 Dec 2019 13:10:04 +0000 Subject: [PATCH] Api-docs validation defaults missing absence [ci skip] --- activemodel/lib/active_model/validations/validates.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index 429c5dbdc26..8baf3bd32cd 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -12,6 +12,7 @@ module ActiveModel # # Examples of using the default rails validators: # + # validates :username, absence: true # validates :terms, acceptance: true # validates :password, confirmation: true # validates :username, exclusion: { in: %w(admin superuser) }