method

parse_raw_value_as_an_integer

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: ActiveModel::Validations::NumericalityValidator
parse_raw_value_as_an_integer(raw_value) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/numericality.rb, line 69
      def parse_raw_value_as_an_integer(raw_value)
        raw_value.to_i if raw_value.to_s =~ /\A[+-]?\d+\Z/
      end
Register or log in to add new notes.