allowing pages to be forced to allow discussions
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@98 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
fba00af90d
commit
8795ac00a9
|
@ -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
|
||||
|
|
Reference in New Issue