Skip to content

Commit 33860b3

Browse files
committed
Remove :doc: for NumericalityValidator [ci skip]
The `:doc:` was added in cdb9d7f but `NumericalityValidator` is already `:nodoc:` class. `:doc:` is unneeded. https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validations/numericality.rb#L3
1 parent 46bf9ee commit 33860b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

activemodel/lib/active_model/validations/numericality.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,27 @@ def validate_each(record, attr_name, value)
6363

6464
private
6565

66-
def is_number?(raw_value) # :doc:
66+
def is_number?(raw_value)
6767
!parse_raw_value_as_a_number(raw_value).nil?
6868
rescue ArgumentError, TypeError
6969
false
7070
end
7171

72-
def parse_raw_value_as_a_number(raw_value) # :doc:
72+
def parse_raw_value_as_a_number(raw_value)
7373
Kernel.Float(raw_value) if raw_value !~ /\A0[xX]/
7474
end
7575

76-
def is_integer?(raw_value) # :doc:
76+
def is_integer?(raw_value)
7777
/\A[+-]?\d+\z/ === raw_value.to_s
7878
end
7979

80-
def filtered_options(value) # :doc:
80+
def filtered_options(value)
8181
filtered = options.except(*RESERVED_OPTIONS)
8282
filtered[:value] = value
8383
filtered
8484
end
8585

86-
def allow_only_integer?(record) # :doc:
86+
def allow_only_integer?(record)
8787
case options[:only_integer]
8888
when Symbol
8989
record.send(options[:only_integer])

0 commit comments

Comments
 (0)