app/cells/decidim/comments/comment_cell.rb in decidim-comments-0.26.0 vs app/cells/decidim/comments/comment_cell.rb in decidim-comments-0.26.1

- old
+ new

@@ -32,11 +32,11 @@ render :votes end def perform_caching? - super && has_replies_in_children? == false + super && has_replies_in_children? == false && current_user.blank? end private def cache_hash @@ -132,10 +132,10 @@ classes << "is-vote-notselected" if voted_up? classes.join(" ") end def commentable_path(params = {}) - if root_commentable.is_a?(Decidim::Budgets::Project) + if defined?(Decidim::Budgets) && root_commentable.is_a?(Decidim::Budgets::Project) resource_locator([root_commentable.budget, root_commentable]).path(params) else resource_locator(root_commentable).path(params) end end