Commit 0eb620f08016c7da4f2c7c2253e4977b2cc9502b

Authored by Evandro Jr
1 parent bfc655ab

validation for body_change_with_comments removed

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
plugins/comment_paragraph/lib/ext/article.rb
@@ -4,7 +4,7 @@ class Article @@ -4,7 +4,7 @@ class Article
4 4
5 has_many :paragraph_comments, :class_name => 'Comment', :foreign_key => 'source_id', :dependent => :destroy, :order => 'created_at asc', :conditions => [ 'paragraph_id IS NOT NULL'] 5 has_many :paragraph_comments, :class_name => 'Comment', :foreign_key => 'source_id', :dependent => :destroy, :order => 'created_at asc', :conditions => [ 'paragraph_id IS NOT NULL']
6 6
7 - validate :body_change_with_comments 7 + #validate :body_change_with_comments
8 8
9 def body_change_with_comments 9 def body_change_with_comments
10 if body && body_changed? && !self.comments.empty? 10 if body && body_changed? && !self.comments.empty?