This commit is contained in:
albert
2013-03-29 15:40:38 -04:00
parent 230d307265
commit 70aa33f08b
2 changed files with 10 additions and 0 deletions

View File

@@ -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