app/models/commontator/comment.rb in commontator-4.7.1 vs app/models/commontator/comment.rb in commontator-4.7.2
- old
+ new
@@ -10,10 +10,10 @@
validates_presence_of :editor, :on => :update
validates_presence_of :thread
validates_presence_of :body
validates_uniqueness_of :body,
- :scope => [:creator_type, :creator_id, :thread_id],
+ :scope => [:creator_type, :creator_id, :thread_id, :deleted_at],
:message => I18n.t('commontator.comment.errors.double_posted')
protected
cattr_accessor :acts_as_votable_initialized