Set a validation on :display_name
This commit is contained in:
parent
4d944e1684
commit
130cbb27ce
|
@ -26,6 +26,8 @@ class User < ActiveRecord::Base
|
|||
|
||||
validates :screen_name, presence: true, format: { with: SCREEN_NAME_REGEX }, uniqueness: { case_sensitive: false }
|
||||
|
||||
validates :display_name, length: { maximum: 50 }
|
||||
|
||||
# validates :website, format: { with: WEBSITE_REGEX }
|
||||
|
||||
def login=(login)
|
||||
|
|
Loading…
Reference in New Issue