diff --git a/app/controllers/admin/press_summaries_controller.rb b/app/controllers/admin/press_summaries_controller.rb index 014c034531..4c28971411 100644 --- a/app/controllers/admin/press_summaries_controller.rb +++ b/app/controllers/admin/press_summaries_controller.rb @@ -1,4 +1,3 @@ class Admin::PressSummariesController < Admin::BaseController - after_action :log_event, only: [:create, :update, :submit, :signoff] include PressSummaryMixin end diff --git a/app/controllers/assessor/press_summaries_controller.rb b/app/controllers/assessor/press_summaries_controller.rb index b7cb8089a8..56a3f68807 100644 --- a/app/controllers/assessor/press_summaries_controller.rb +++ b/app/controllers/assessor/press_summaries_controller.rb @@ -1,4 +1,3 @@ class Assessor::PressSummariesController < Assessor::BaseController - after_action :log_event, only: [:create, :update, :submit, :signoff] include PressSummaryMixin end diff --git a/app/controllers/concerns/press_summary_mixin.rb b/app/controllers/concerns/press_summary_mixin.rb index 291f9532b2..0f6ca9e83a 100644 --- a/app/controllers/concerns/press_summary_mixin.rb +++ b/app/controllers/concerns/press_summary_mixin.rb @@ -4,6 +4,7 @@ module PressSummaryMixin def self.included(base) base.before_action :load_form_answer base.before_action :load_press_summary, except: :create + base.after_action :log_event, only: [:create, :update, :submit, :signoff] end def create