FIX: validate user website

This commit is contained in:
Arpit Jalan
2016-02-06 02:19:48 +05:30
parent ea0e63b150
commit 8a7868be07
3 changed files with 14 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ class UserUpdater
attr_reader :user, :guardian
def format_url(website)
return nil if website.blank?
website =~ /^http/ ? website : "http://#{website}"
end
end