diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-09 23:21:35 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-09 23:21:35 -0400 |
commit | 05104c93a1b12845875691e7b97ea9d9239c8ef1 (patch) | |
tree | bbd9fb38032b7b74ff5c864fe822fb088ed2ae43 /app | |
parent | 0cfbc1502bd1f04aac8a5c0a380230db98288540 (diff) |
disallow spaces in usernames
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 462136f..46cd532 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -52,7 +52,7 @@ class User < ActiveRecord::Base validates(:user_name, presence: true, length:{maximum: 50}, - format: {with: /\A[a-zA-Z0-9 _\-]+\z/}, + format: {with: /\A[a-zA-Z0-9_-]+\z/}, uniqueness: {case_sensitive: false }) # password_digest:string |