lib/decidim/comments/export.rb in decidim-comments-0.27.2 vs lib/decidim/comments/export.rb in decidim-comments-0.27.3

- old
+ new

@@ -11,9 +11,11 @@ # # 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