lib/rentlinx/validators/phone_validator.rb
# Validates and normalizes the phone number
Validates and normalizes the phone number
Validates and normalizes the phone number
def processed_value
      return '' if value_blank?
      return @value unless valid?
      @value.gsub(/[\+\(\)\s\-]/, '')
    end
def processed_value return '' if value_blank? return @value unless valid? @value . gsub ( / [ \+ \( \) \s \- ] / , '' ) end
Validates and normalizes the phone number
Validates and normalizes the phone number