Fix phony normalization problem

This commit is contained in:
Andrew Radev 2015-05-30 18:24:33 +03:00
parent f2dddcdff5
commit b0a978975c
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class PersonalProfile < ActiveRecord::Base
validates :twitter, format: {with: /\A[a-z0-9_]{1,15}\z/i}, allow_blank: true
validates :github, format: {with: /\A[a-z0-9][a-z0-9\-]*\z/i}, allow_blank: true
phony_normalize :mobile_phone, default_country_code: 'BG'
phony_normalize :mobile_phone, default_country_code: 'BG', add_plus: false
mount_uploader :picture, PictureUploader