lib/decidim/comments/export.rb in decidim-comments-0.26.10 vs lib/decidim/comments/export.rb in decidim-comments-0.27.0.rc1

- old
+ new

@@ -11,11 +11,9 @@ # # Returns an Arel::Relation with all the comments for that component and resource. def comments_for_resource(resource_class, component) Comment .where(decidim_root_commentable_id: resource_class.where(component: component)) - .not_deleted - .not_hidden .where(decidim_root_commentable_type: resource_class.to_s) end module_function :comments_for_resource end