Fix being able to delete notes when post is note locked

This commit is contained in:
Toks
2015-10-27 09:49:15 -04:00
parent 3a81f1ee8e
commit 010008eab3
2 changed files with 8 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ class NotesController < ApplicationController
def destroy
@note = Note.find(params[:id])
@note.update_attribute(:is_active, false)
@note.update_attributes(:is_active => false)
respond_with(@note)
end