Fix registration error info typo

This commit is contained in:
lol768 2014-03-02 18:45:38 +00:00
parent a9dcfd851f
commit 39bb54feb3

View file

@ -249,7 +249,7 @@ class User < ActiveRecord::Base
def namespace_uniq
namespace_name = self.username
if Namespace.find_by(path: namespace_name)
self.errors.add :username, "already exist"
self.errors.add :username, "already exists"
end
end