This commit is contained in:
albert
2013-02-19 14:10:13 -05:00
parent 3fecc3fb82
commit ad6ad8074e
3 changed files with 17 additions and 8 deletions

View File

@@ -55,11 +55,11 @@ class UserFeedback < ActiveRecord::Base
end
def user_name
if user
user.name
else
nil
end
User.id_to_name(user_id)
end
def creator_name
User.id_to_name(creator_id)
end
def user_name=(name)