summaryrefslogtreecommitdiff
path: root/help/app/models
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-29 15:08:21 -0700
committerjessib <jessib@riseup.net>2012-10-29 15:08:21 -0700
commit6eaecdd10be3974871583e1fed8c5d4e7e307bd8 (patch)
tree3600ea74a46bfabf7ec6a44b6e6c399613f7953d /help/app/models
parent8b9d5235faed6c15e8ef2e2dc76aec7f24d0bb50 (diff)
Just some comments
Diffstat (limited to 'help/app/models')
-rw-r--r--help/app/models/ticket.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/help/app/models/ticket.rb b/help/app/models/ticket.rb
index f38fed2..15d4d3d 100644
--- a/help/app/models/ticket.rb
+++ b/help/app/models/ticket.rb
@@ -80,6 +80,7 @@ class Ticket < CouchRest::Model::Base
comment = TicketComment.new(attributes.values.first) #TicketComment.new(attributes)
#comment.posted_by = User.current.id if User.current #we want to avoid User.current, and current_user won't work here. instead will set in tickets_controller
+ # what about: comment.posted_by = self.updated_by (will need to add ticket.updated_by)
comment.posted_at = Time.now
comments << comment