Don't override error message for user's nickname uniqueness
This commit is contained in:
parent
8dba31ce71
commit
4b5c02477b
@ -5,12 +5,7 @@ class User < ActiveRecord::Base
|
||||
has_many :comments, :dependent => :destroy
|
||||
has_many :likes, :dependent => :destroy
|
||||
|
||||
validates :nickname, :presence => true
|
||||
|
||||
validates_uniqueness_of \
|
||||
:nickname,
|
||||
:message => "Sorry, but your nickname is already taken, " \
|
||||
"choose different one"
|
||||
validates :nickname, presence: true, uniqueness: true
|
||||
|
||||
has_many :user_tokens, :dependent => :destroy
|
||||
has_many :asciicasts, :dependent => :destroy
|
||||
|
Loading…
Reference in New Issue
Block a user