navigate back to note's project after deletion

fixes #1882
This commit is contained in:
Carsten Otto 2015-05-23 22:39:32 +02:00
parent 7781281243
commit 65a2a727fb
2 changed files with 10 additions and 2 deletions

View file

@ -56,6 +56,7 @@ class NotesController < ApplicationController
def destroy
@note = current_user.notes.find(params['id'])
@note.destroy
set_source_view
respond_to do |format|
format.html