implements user name change requests

This commit is contained in:
albert
2013-03-26 18:13:03 -04:00
parent 7939ce2a98
commit a9be96ce8b
12 changed files with 179 additions and 12 deletions

View File

@@ -130,4 +130,8 @@ class UserPresenter
user.subscriptions.select {|x| x.is_public?}
end
end
def previous_names
UserNameChangeRequest.approved.where("user_id = ?", user.id).map(&:original_name).join(", ")
end
end