module Protocolist
  module ControllerAdditions
    module Initializer
      extend ActiveSupport::Concern

      included do
        before_action :initialize_protocolist
      end

      def initialize_protocolist
        Protocolist.actor = current_user
        Protocolist.activity_class = Activity
      end
    end
  end
end