From 4def5b22fbf1bcdd6b142f04657e8e51e3d66afc Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 5 Apr 2013 12:52:15 -0400 Subject: [PATCH] fixes #1194 --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index f1158bd4e..74701a14b 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,5 +1,5 @@ class Comment < ActiveRecord::Base - validate :validate_creator_is_not_limited + validate :validate_creator_is_not_limited, :on => :create validates_format_of :body, :with => /\S/, :message => 'has no content' belongs_to :post belongs_to :creator, :class_name => "User"