Method: NotesController#destroy
- Defined in:
- lib/generators/jinda/templates/app/controllers/jinda_org/notes_controller.rb
#destroy ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/generators/jinda/templates/app/controllers/jinda_org/notes_controller.rb', line 59 def destroy # called by rails menu my if current_ma_user.role.upcase.split(',').include?("A") || current_ma_user == @note.user @note.destroy end redirect_to :action=>'my' end |