Skip to content

Commit e80d9f4

Browse files
committed
fix ActiveModel::Validator#kind code examples [ci skip]
1 parent 855a9f1 commit e80d9f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activemodel/lib/active_model/validator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def initialize(options = {})
109109

110110
# Returns the kind for this validator.
111111
#
112-
# PresenceValidator.new.kind # => :presence
113-
# AcceptanceValidator.new.kind # => :acceptance
112+
# PresenceValidator.new(attributes: [:username]).kind # => :presence
113+
# AcceptanceValidator.new(attributes: [:terms]).kind # => :acceptance
114114
def kind
115115
self.class.kind
116116
end

0 commit comments

Comments
 (0)