Method: IshManager::EmailContextsController#destroy
- Defined in:
- app/controllers/ish_manager/email_contexts_controller.rb
#destroy ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/ish_manager/email_contexts_controller.rb', line 29 def destroy @ctx = Ish::EmailContext.find params[:id] :destroy, @ctx flag = @ctx.destroy if flag flash[:notice] = 'Destroyed the email context' else flash[:alert] = 'Could not destroy email context' end redirect_to action: :index end |