summaryrefslogtreecommitdiff
path: root/help/app/models/ticket_comment.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-16 15:51:35 -0700
committerjessib <jessib@riseup.net>2012-10-16 15:51:35 -0700
commit48d6c2aac9ae2bf1c140e734a576e45289c99150 (patch)
treee52e003e635ee650fbe0981dc1cb4c29c409429e /help/app/models/ticket_comment.rb
parent56273c13f54a872d02db286c90a8d5103cf7a663 (diff)
Some functional tests and other tweaks.
Diffstat (limited to 'help/app/models/ticket_comment.rb')
-rw-r--r--help/app/models/ticket_comment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/help/app/models/ticket_comment.rb b/help/app/models/ticket_comment.rb
index 9026bc1..a8639a1 100644
--- a/help/app/models/ticket_comment.rb
+++ b/help/app/models/ticket_comment.rb
@@ -2,13 +2,13 @@ class TicketComment
include CouchRest::Model::Embeddable
#belongs_to :ticket #is this best way to do it? will want to access all of a tickets comments, so maybe this isn't the way?
- property :posted_by, Integer#, :protected => true# maybe this should be current_user if that is set, meaning the user is logged in #String # user??
+ property :posted_by, String#, :protected => true #Integer#this should be current_user if that is set, meaning the user is logged in #cannot have it be protected and set via comments_attributes=
# if the current user is not set, then we could just say the comment comes from an 'unauthenticated user', which would be somebody with the secret URL
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
-
+ # ? timestamps!
validates :body, :presence => true
#before_validation :set_time#, :set_posted_by