method
parse_raw_value_as_an_integer
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
parse_raw_value_as_an_integer(raw_value)
protected
Hide source
# File activemodel/lib/active_model/validations/numericality.rb, line 73 def parse_raw_value_as_an_integer(raw_value) raw_value.to_i if raw_value.to_s =~ /\A[+-]?\d+\z/ end