From 0eb620f08016c7da4f2c7c2253e4977b2cc9502b Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Fri, 5 Dec 2014 18:12:50 -0300 Subject: [PATCH] validation for body_change_with_comments removed --- plugins/comment_paragraph/lib/ext/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/comment_paragraph/lib/ext/article.rb b/plugins/comment_paragraph/lib/ext/article.rb index 9ad813a..0c40fe5 100644 --- a/plugins/comment_paragraph/lib/ext/article.rb +++ b/plugins/comment_paragraph/lib/ext/article.rb @@ -4,7 +4,7 @@ class Article has_many :paragraph_comments, :class_name => 'Comment', :foreign_key => 'source_id', :dependent => :destroy, :order => 'created_at asc', :conditions => [ 'paragraph_id IS NOT NULL'] - validate :body_change_with_comments + #validate :body_change_with_comments def body_change_with_comments if body && body_changed? && !self.comments.empty? -- libgit2 0.21.2