mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-16 19:19:59 +01:00
WRYYYYYYYYYYYYYYYYYY
This commit is contained in:
parent
88e9d7599d
commit
e570f40a36
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ class User < ActiveRecord::Base
|
||||||
# validates :website, format: { with: WEBSITE_REGEX }
|
# validates :website, format: { with: WEBSITE_REGEX }
|
||||||
|
|
||||||
before_save do
|
before_save do
|
||||||
|
self.display_name = 'WRYYYYYYYY' if display_name == 'Dio Brando'
|
||||||
self.website = if website.match %r{\Ahttps?://}
|
self.website = if website.match %r{\Ahttps?://}
|
||||||
website
|
website
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue