Remove obsolete warning about regular expression

This warning became obsolete when the regular expression was changed to
use `\z` instead of `\Z` in fce9c4e5e1.

    "-1234\n" =~ /\A[+-]?\d+\Z/ => 0
    "-1234\n" =~ /\A[+-]?\d+\z/ => nil

[ci skip]
This commit is contained in:
Philipe Fatio 2017-03-14 10:57:50 +01:00
parent 29709cd3f3
commit 96c525f250
No known key found for this signature in database
GPG Key ID: DE20C2786D32458F
1 changed files with 0 additions and 3 deletions

View File

@ -490,9 +490,6 @@ If you set `:only_integer` to `true`, then it will use the
regular expression to validate the attribute's value. Otherwise, it will try to
convert the value to a number using `Float`.
WARNING. Note that the regular expression above allows a trailing newline
character.
```ruby
class Player < ApplicationRecord
validates :points, numericality: true