aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorstve <steve.agalloco@gmail.com>2017-05-02 22:52:01 -0400
committerstve <steve.agalloco@gmail.com>2017-05-02 22:52:01 -0400
commite80d9f411ddeecad253712bc5ea965dff843bc58 (patch)
treec47377497d48dcff01d0cff9b1029a3c467f58fa /activemodel/lib/active_model
parent855a9f1705d9afbd8af6a498577b4f1da900b338 (diff)
downloadrails-e80d9f411ddeecad253712bc5ea965dff843bc58.tar.gz
rails-e80d9f411ddeecad253712bc5ea965dff843bc58.tar.bz2
rails-e80d9f411ddeecad253712bc5ea965dff843bc58.zip
fix ActiveModel::Validator#kind code examples [ci skip]
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/validator.rb4
1 files changed, 2 insertions, 2 deletions
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