method
non_numeric_string?
rails latest stable - Class:
ActiveModel::Type::Helpers::Numeric
non_numeric_string?(value)private
No documentation available.
# File activemodel/lib/active_model/type/helpers/numeric.rb, line 49
def non_numeric_string?(value)
# 'wibble'.to_i will give zero, we want to make sure
# that we aren't marking int zero to string zero as
# changed.
!NUMERIC_REGEX.match?(value)
end