enabled topic

This commit is contained in:
Nicolas Bally 2015-02-22 21:30:37 +01:00
parent 809f4f9e1c
commit bbfc1d1385

View File

@ -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]