aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/comment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 2fcc5f0..e633605 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -7,8 +7,8 @@ class Comment < ActiveRecord::Base
content HoboFields::MarkdownString, :null => false
timestamps
end
-
belongs_to :answer, :null => false
+ attr_readonly :answer
validates_presence_of :content