summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-09 23:21:35 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-09 23:21:35 -0400
commit05104c93a1b12845875691e7b97ea9d9239c8ef1 (patch)
treebbd9fb38032b7b74ff5c864fe822fb088ed2ae43 /app/models/user.rb
parent0cfbc1502bd1f04aac8a5c0a380230db98288540 (diff)
disallow spaces in usernames
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
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