From 80fff983a44d6d1d38f130b4114b2c32496e99ec Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sun, 24 Mar 2024 11:41:38 +0100 Subject: [PATCH] add controller_additionals_journals_edit_post hook --- app/controllers/additionals_journals_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/additionals_journals_controller.rb b/app/controllers/additionals_journals_controller.rb index 750fb41f..d14fe933 100644 --- a/app/controllers/additionals_journals_controller.rb +++ b/app/controllers/additionals_journals_controller.rb @@ -28,6 +28,7 @@ class AdditionalsJournalsController < ApplicationController @journal.safe_attributes = journal_attributes @journal.save @journal.destroy if @journal.details.empty? && @journal.notes.blank? + call_hook(:controller_additionals_journals_edit_post, { journal: @journal, params: params }) respond_to do |format| format.html { redirect_after_update } format.js { render 'additionals_journals/update' }