From bbfc1d138548e41804367cb03880de577d067086 Mon Sep 17 00:00:00 2001 From: Nicolas Bally <nico@MacBook-Pro-de-Nicolas.local> Date: Sun, 22 Feb 2015 21:30:37 +0100 Subject: [PATCH] enabled topic --- app/controllers/forum/forum_topics_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/forum/forum_topics_controller.rb b/app/controllers/forum/forum_topics_controller.rb index 7770867..efb5299 100644 --- a/app/controllers/forum/forum_topics_controller.rb +++ b/app/controllers/forum/forum_topics_controller.rb @@ -60,6 +60,7 @@ class Forum::ForumTopicsController < ApplicationController @topic = ForumTopic.new(params.require(:forum_topic).permit!) @topic.forum_user = current_fuser + @topic.enabled = true if @topic.save redirect_to [:forum, @topic]