Sha256: 9e075cf904c629c1849f771c7fe2b7864e341f62381f83f6b213cd58be362c02

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

module Lit
  module Concerns
    module RequestInfoStore
      extend ::ActiveSupport::Concern
      included do
        before_action :store_request_path
      end

      private

      def store_request_path
        Thread.current[:lit_current_request_path] = request&.path
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
motorefi-lit-0.3.3 app/controllers/lit/concerns/request_info_store.rb
lit-0.3.3 app/controllers/lit/concerns/request_info_store.rb
lit-0.3.1 app/controllers/lit/concerns/request_info_store.rb
lit-0.3.0 app/controllers/lit/concerns/request_info_store.rb