diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-07-07 14:09:23 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-07-07 14:16:03 +0200 |
commit | b8962664adbd7041e0557db399f4c5d2e48e3781 (patch) | |
tree | bea9002b1bdeeeb6a9ea6970f90f3ded913a8866 | |
parent | cf579b48a306ff7b1f9266caece283a96d449684 (diff) | |
download | rails-b8962664adbd7041e0557db399f4c5d2e48e3781.tar.gz rails-b8962664adbd7041e0557db399f4c5d2e48e3781.tar.bz2 rails-b8962664adbd7041e0557db399f4c5d2e48e3781.zip |
docs, remove accidental :nodoc: of ActiveModel::Validations::ClassMethods methods.
[ci skip]
While this :nodoc: did hide the constant it also removed the following
methods from the API docs:
- #attribute_method?
- #clear_validators!
- #validate
- #validators
- #validators_on
Those are public API and should be visible.
Issue was caused by dee4fbc
/cc @zzak
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index c1019169e1..4f4c75d165 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -87,8 +87,7 @@ module ActiveModel validates_with BlockValidator, _merge_attributes(attr_names), &block end - # :nodoc: - VALID_OPTIONS_FOR_VALIDATE = [:on, :if, :unless, :prepend].freeze + VALID_OPTIONS_FOR_VALIDATE = [:on, :if, :unless, :prepend].freeze # :nodoc: # Adds a validation method or block to the class. This is useful when # overriding the +validate+ instance method becomes too unwieldy and |