aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-07-07 14:09:23 +0200
committerYves Senn <yves.senn@gmail.com>2015-07-07 14:16:03 +0200
commitb8962664adbd7041e0557db399f4c5d2e48e3781 (patch)
treebea9002b1bdeeeb6a9ea6970f90f3ded913a8866 /activemodel/lib
parentcf579b48a306ff7b1f9266caece283a96d449684 (diff)
downloadrails-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
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations.rb3
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