Allowing nil social media urls
This commit is contained in:
parent
c61b8ac8d4
commit
faaeb2b4a2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user