diff options
author | 2010-08-14 15:31:17 +0200 | |
---|---|---|
committer | 2010-08-14 15:31:17 +0200 | |
commit | 24175efa854fbb36e4769a9b389fc1042e158436 (patch) | |
tree | deec7bbaef0ce100903603df5e46eaa8b526e931 | |
parent | Document modules (diff) | |
download | recruiting-webapp-24175efa854fbb36e4769a9b389fc1042e158436.tar.gz recruiting-webapp-24175efa854fbb36e4769a9b389fc1042e158436.tar.bz2 recruiting-webapp-24175efa854fbb36e4769a9b389fc1042e158436.zip |
Make answer relation of Comment readonly
-rw-r--r-- | app/models/comment.rb | 2 |
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 |