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
This commit is contained in:
parent
cf579b48a3
commit
b8962664ad
@ -87,8 +87,7 @@ def validates_each(*attr_names, &block)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user