From e80d9f411ddeecad253712bc5ea965dff843bc58 Mon Sep 17 00:00:00 2001 From: stve Date: Tue, 2 May 2017 22:52:01 -0400 Subject: fix ActiveModel::Validator#kind code examples [ci skip] --- activemodel/lib/active_model/validator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 0032200ef7..1a4d13f2d0 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/activemodel/lib/active_model/validator.rb @@ -109,8 +109,8 @@ module ActiveModel # Returns the kind for this validator. # - # PresenceValidator.new.kind # => :presence - # AcceptanceValidator.new.kind # => :acceptance + # PresenceValidator.new(attributes: [:username]).kind # => :presence + # AcceptanceValidator.new(attributes: [:terms]).kind # => :acceptance def kind self.class.kind end -- cgit v1.2.3