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"