allowing pages to be forced to allow discussions

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@98 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-01-20 01:42:02 +00:00
parent fba00af90d
commit 8795ac00a9
1 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ class DiscussionsController < ApplicationController
def allow_discussions
@page = Page.find(params[:id])
status = 500
status = 200 if @page.update_attribute(:allow_discussions, true)
render :nothing => true, :status => status
end
end