Merge pull request #1888 from C-Otto/tracks-1882

navigate back to note's project after deletion
This commit is contained in:
Matt Rogers 2015-08-07 21:05:21 -04:00
commit 486204c1d7
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