This commit is contained in:
r888888888
2013-05-07 17:29:52 -07:00
parent 72b18051f8
commit bb88c22257

View File

@@ -56,7 +56,7 @@ class ForumPostsController < ApplicationController
def destroy
@forum_post = ForumPost.find(params[:id])
raise User::PrivilegeError unless @forum_post.editable_by?(CurrentUser.user)
@forum_post.update_attribute(:is_deleted, true)
@forum_post.update_column(:is_deleted, true)
respond_with(@forum_post)
end