allowing pages to be forced to allow discussions

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@98 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
This commit is contained in:
andrew 2008-01-20 01:42:02 +00:00
commit 8795ac00a9

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