summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 6e439fb..85f1982 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -77,11 +77,11 @@ class User < ActiveRecord::Base
# validity
validates(:name, presence: true, length: { maximum: 50 })
validates(:email, presence: true, format: {with:
- VALID_EMAIL_REG},
- uniqueness: { case_sensitive: false })
+ VALID_EMAIL_REG},
+ uniqueness: { case_sensitive: false })
validates(:user_name, presence: true, length:{maximum: 50},
- format: {with: VALID_USER_NAME_REG },
- uniqueness: {case_sensitive: false })
+ format: {with: VALID_USER_NAME_REG },
+ uniqueness: {case_sensitive: false })
##
# Instead of adding password and password_confirmation