Fixes #1081, Add more profile info on user Profile

This commit is contained in:
Chaitanya 2017-03-10 00:36:22 +05:30
parent 7ea168fef4
commit 18d0f6215b
9 changed files with 133 additions and 25 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