summaryrefslogtreecommitdiff
path: root/help/app/models
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-07 12:25:12 -0800
committerjessib <jessib@leap.se>2013-01-07 12:25:12 -0800
commitce8b283255e2be4c0f42b3223c3cf4ad33364933 (patch)
tree48933c4242f08b7de98ea4f301162c5dd3e57859 /help/app/models
parent6b0fba93fc6137e83fb66cc38098f5479d1ce485 (diff)
Ticket comments can be private
Diffstat (limited to 'help/app/models')
-rw-r--r--help/app/models/ticket_comment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/help/app/models/ticket_comment.rb b/help/app/models/ticket_comment.rb
index 49e5c6c..18da3e1 100644
--- a/help/app/models/ticket_comment.rb
+++ b/help/app/models/ticket_comment.rb
@@ -7,6 +7,7 @@ class TicketComment
property :posted_at, Time#, :protected => true
#property :posted_verified, TrueClass, :protected => true #should be true if current_user is set when the comment is created
property :body, String
+ property :private, TrueClass # private comments are only viewable by admins
# ? timestamps!
validates :body, :presence => true