Skip to content

Commit 6dcccee

Browse files
authored
Merge pull request rails#28026 from Sen-Zhang/fix_some_typos_in_comments
Change ActiveModel::Validation to ActiveModel::Validations in comments
2 parents a9231d5 + d57356b commit 6dcccee

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

activemodel/lib/active_model/validations/absence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module HelperMethods
2222
#
2323
# There is also a list of default options supported by every validator:
2424
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
25-
# See <tt>ActiveModel::Validation#validates</tt> for more information
25+
# See <tt>ActiveModel::Validations#validates</tt> for more information
2626
def validates_absence_of(*attr_names)
2727
validates_with AbsenceValidator, _merge_attributes(attr_names)
2828
end

activemodel/lib/active_model/validations/acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module HelperMethods
9595
#
9696
# There is also a list of default options supported by every validator:
9797
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
98-
# See <tt>ActiveModel::Validation#validates</tt> for more information.
98+
# See <tt>ActiveModel::Validations#validates</tt> for more information.
9999
def validates_acceptance_of(*attr_names)
100100
validates_with AcceptanceValidator, _merge_attributes(attr_names)
101101
end

activemodel/lib/active_model/validations/confirmation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module HelperMethods
6969
#
7070
# There is also a list of default options supported by every validator:
7171
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
72-
# See <tt>ActiveModel::Validation#validates</tt> for more information
72+
# See <tt>ActiveModel::Validations#validates</tt> for more information
7373
def validates_confirmation_of(*attr_names)
7474
validates_with ConfirmationValidator, _merge_attributes(attr_names)
7575
end

activemodel/lib/active_model/validations/exclusion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module HelperMethods
3838
#
3939
# There is also a list of default options supported by every validator:
4040
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
41-
# See <tt>ActiveModel::Validation#validates</tt> for more information
41+
# See <tt>ActiveModel::Validations#validates</tt> for more information
4242
def validates_exclusion_of(*attr_names)
4343
validates_with ExclusionValidator, _merge_attributes(attr_names)
4444
end

activemodel/lib/active_model/validations/format.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module HelperMethods
104104
#
105105
# There is also a list of default options supported by every validator:
106106
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
107-
# See <tt>ActiveModel::Validation#validates</tt> for more information
107+
# See <tt>ActiveModel::Validations#validates</tt> for more information
108108
def validates_format_of(*attr_names)
109109
validates_with FormatValidator, _merge_attributes(attr_names)
110110
end

activemodel/lib/active_model/validations/inclusion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module HelperMethods
3636
#
3737
# There is also a list of default options supported by every validator:
3838
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
39-
# See <tt>ActiveModel::Validation#validates</tt> for more information
39+
# See <tt>ActiveModel::Validations#validates</tt> for more information
4040
def validates_inclusion_of(*attr_names)
4141
validates_with InclusionValidator, _merge_attributes(attr_names)
4242
end

activemodel/lib/active_model/validations/length.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module HelperMethods
110110
#
111111
# There is also a list of default options supported by every validator:
112112
# +:if+, +:unless+, +:on+ and +:strict+.
113-
# See <tt>ActiveModel::Validation#validates</tt> for more information
113+
# See <tt>ActiveModel::Validations#validates</tt> for more information
114114
def validates_length_of(*attr_names)
115115
validates_with LengthValidator, _merge_attributes(attr_names)
116116
end

activemodel/lib/active_model/validations/numericality.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module HelperMethods
134134
#
135135
# There is also a list of default options supported by every validator:
136136
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+ .
137-
# See <tt>ActiveModel::Validation#validates</tt> for more information
137+
# See <tt>ActiveModel::Validations#validates</tt> for more information
138138
#
139139
# The following checks can also be supplied with a proc or a symbol which
140140
# corresponds to a method:

activemodel/lib/active_model/validations/presence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module HelperMethods
2929
#
3030
# There is also a list of default options supported by every validator:
3131
# +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
32-
# See <tt>ActiveModel::Validation#validates</tt> for more information
32+
# See <tt>ActiveModel::Validations#validates</tt> for more information
3333
def validates_presence_of(*attr_names)
3434
validates_with PresenceValidator, _merge_attributes(attr_names)
3535
end

activemodel/lib/active_model/validations/with.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module ClassMethods
6161
# The method, proc or string should return or evaluate to a +true+ or
6262
# +false+ value.
6363
# * <tt>:strict</tt> - Specifies whether validation should be strict.
64-
# See <tt>ActiveModel::Validation#validates!</tt> for more information.
64+
# See <tt>ActiveModel::Validations#validates!</tt> for more information.
6565
#
6666
# If you pass any additional configuration options, they will be passed
6767
# to the class and available as +options+:

0 commit comments

Comments
 (0)