module ApiTranscriptAgent
  module Transcribe
    extend ActiveSupport::Concern

    included do
    end

    module ClassMethods
      def transcribe(*actions)
        before_action only: actions do
          env['api_transcript.transcribe_action'] = true
        end
      end
    end
  end
end

module ApiTranscriptAgent
  module Transcribe
    extend ActiveSupport::Concern

    included do
    end

    module ClassMethods
      def transcribe(*actions)
        options = {}
        options[:only] = actions if actions.present?

        before_action(options) do
          request.env['api_transcript.transcribe_action'] = true
        end
      end
    end
  end
end

Enable transcript for all actions.
Enable transcript for all actions.
