This commit is contained in:
Chaitanya Yadav 2017-03-17 15:21:07 +00:00 committed by GitHub
commit 47c62ba841
11 changed files with 158 additions and 26 deletions

View file

@ -63,6 +63,9 @@ class User < ActiveRecord::Base
validate :biography_limit
validates :website_url, :linkedin, :googleplus, :gnu, :twitter, :gitlab, :github, :gna, :savannah, :diaspora,
format: { with: URI.regexp(%w(http https)), message: 'This is an invalid URL. It should start with http or https'}, allow_blank: true
##
# Checkes if the user attended the event
# This is used for events that require registration