Rename nickname to username in the code. Use new hub routes. (Old routes still exist as aliases for old Discourse instances.)

This commit is contained in:
Neil Lalonde
2014-03-12 12:39:27 -04:00
parent dc1d6decf5
commit 9ca516e58d
11 changed files with 104 additions and 104 deletions

View File

@ -166,7 +166,7 @@ class User < ActiveRecord::Base
self.username = new_username
if current_username.downcase != new_username.downcase && valid?
DiscourseHub.nickname_operation { DiscourseHub.change_nickname(current_username, new_username) }
DiscourseHub.username_operation { DiscourseHub.change_username(current_username, new_username) }
end
save