app/controllers/decidim/debates/admin/debates_controller.rb in decidim-debates-0.28.0 vs app/controllers/decidim/debates/admin/debates_controller.rb in decidim-debates-0.28.1
- old
+ new
@@ -72,10 +72,10 @@
end
private
def debates
- @debates ||= Debate.where(component: current_component)
+ @debates ||= Debate.where(component: current_component).not_hidden
end
def debate
@debate ||= debates.find(params[:id])
end