This commit is contained in:
Toks
2013-04-05 12:52:15 -04:00
parent f2780f6eb4
commit 4def5b22fb

View File

@@ -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"