From c7f12f152918acf03bbc9788d464981816e61966 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 24 Apr 2017 20:46:00 +0900 Subject: Fix regexp in the doc [ci skip] Follow up of #17148. --- activemodel/lib/active_model/validations/numericality.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb index 995b331245..b82c85ddf4 100644 --- a/activemodel/lib/active_model/validations/numericality.rb +++ b/activemodel/lib/active_model/validations/numericality.rb @@ -104,7 +104,7 @@ module ActiveModel module HelperMethods # Validates whether the value of the specified attribute is numeric by # trying to convert it to a float with Kernel.Float (if only_integer - # is +false+) or applying it to the regular expression /\A[\+\-]?\d+\Z/ + # is +false+) or applying it to the regular expression /\A[\+\-]?\d+\z/ # (if only_integer is set to +true+). # # class Person < ActiveRecord::Base -- cgit v1.2.3