fixed tests
This commit is contained in:
@@ -44,7 +44,14 @@ class ForumTopicsController < ApplicationController
|
||||
def destroy
|
||||
@forum_topic = ForumTopic.find(params[:id])
|
||||
check_privilege(@forum_topic)
|
||||
@forum_topic.destroy
|
||||
@forum_topic.update_attribute(:is_deleted, true)
|
||||
respond_with(@forum_topic)
|
||||
end
|
||||
|
||||
def undelete
|
||||
@forum_topic = ForumTopic.find(params[:id])
|
||||
check_privilege(@forum_topic)
|
||||
@forum_topic.update_attribute(:is_deleted, false)
|
||||
respond_with(@forum_topic)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user