Skip to content

Commit

Permalink
add controller_additionals_journals_edit_post hook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Mar 24, 2024
1 parent 12ff57d commit 80fff98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/additionals_journals_controller.rb
Expand Up @@ -28,6 +28,7 @@ def update
@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' }
Expand Down

0 comments on commit 80fff98

Please sign in to comment.