summaryrefslogtreecommitdiff
path: root/help/app/models/ticket_comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'help/app/models/ticket_comment.rb')
-rw-r--r--help/app/models/ticket_comment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/help/app/models/ticket_comment.rb b/help/app/models/ticket_comment.rb
index 18da3e1..1df7eec 100644
--- a/help/app/models/ticket_comment.rb
+++ b/help/app/models/ticket_comment.rb
@@ -22,6 +22,10 @@ class TicketComment
!!posted_by
end
+ def posted_by_user
+ User.find(self.posted_by)
+ end
+
=begin
#TODO.
#this is resetting all comments associated with the ticket: