Skip to content

Commit

Permalink
add permitted params
Browse files Browse the repository at this point in the history
  • Loading branch information
croath committed Mar 3, 2015
1 parent f56871a commit ba77418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/topics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ def find_topic_and_auth
end

def topic_params
params.require(:topic).permit(:title, :content, :node_id)
params.require(:topic).permit(:title, :content, :node_id, :comments_closed, :sticky)
end
end

0 comments on commit ba77418

Please sign in to comment.