Allowing nil social media urls

This commit is contained in:
Will Bradley 2013-08-29 16:28:57 -07:00
parent c61b8ac8d4
commit faaeb2b4a2

View File

@ -16,7 +16,7 @@ class User < ActiveRecord::Base
has_many :certifications, :through => :user_certifications has_many :certifications, :through => :user_certifications
has_many :payments has_many :payments
validates_format_of [:twitter_url, :facebook_url, :github_url, :website_url], :with => URI::regexp(%w(http https)) validates_format_of [:twitter_url, :facebook_url, :github_url, :website_url], :with => URI::regexp(%w(http https)), :allow_blank => true
after_create :send_new_user_email after_create :send_new_user_email