diff options
author | stve <steve.agalloco@gmail.com> | 2017-05-02 22:52:01 -0400 |
---|---|---|
committer | stve <steve.agalloco@gmail.com> | 2017-05-02 22:52:01 -0400 |
commit | e80d9f411ddeecad253712bc5ea965dff843bc58 (patch) | |
tree | c47377497d48dcff01d0cff9b1029a3c467f58fa /activemodel/lib/active_model | |
parent | 855a9f1705d9afbd8af6a498577b4f1da900b338 (diff) | |
download | rails-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.rb | 4 |
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 |