fixes #1128
This commit is contained in:
@@ -22,6 +22,10 @@ class UserNameChangeRequest < ActiveRecord::Base
|
||||
status == "rejected"
|
||||
end
|
||||
|
||||
def approved?
|
||||
status == "approved"
|
||||
end
|
||||
|
||||
def normalize_name
|
||||
self.desired_name = desired_name.strip.gsub(/ /, "_")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user