diff options
author | jessib <jessib@riseup.net> | 2012-10-10 10:55:25 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-10-10 10:55:25 -0700 |
commit | c27f2a0686db0705553eda88c799d4c486c20bac (patch) | |
tree | edc4e1b36e747fb87ac429d2fd348abfaec11c28 /help/app/models/ticket_comment.rb | |
parent | b077363d51de511d53c9b20ade1cb26707f3ecdf (diff) |
Pushing some tweaks as I try to get server-side validation working.
Diffstat (limited to 'help/app/models/ticket_comment.rb')
-rw-r--r-- | help/app/models/ticket_comment.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/help/app/models/ticket_comment.rb b/help/app/models/ticket_comment.rb index 6b6b4db..9026bc1 100644 --- a/help/app/models/ticket_comment.rb +++ b/help/app/models/ticket_comment.rb @@ -8,6 +8,8 @@ class TicketComment #property :posted_verified, TrueClass, :protected => true #should be true if current_user is set when the comment is created property :body, String + + validates :body, :presence => true #before_validation :set_time#, :set_posted_by #design do |