WRYYYYYYYYYYYYYYYYYY

This commit is contained in:
nilsding 2014-12-27 01:45:24 +01:00
parent 88e9d7599d
commit e570f40a36
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class User < ActiveRecord::Base
# validates :website, format: { with: WEBSITE_REGEX }
before_save do
self.display_name = 'WRYYYYYYYY' if display_name == 'Dio Brando'
self.website = if website.match %r{\Ahttps?://}
website
else