Sha256: ecf34e9717f1b8c68c50c3ddfdca456c51327a930e11f084a03b490780d98405

Contents?: true

Size: 282 Bytes

Versions: 16

Compression:

Stored size: 282 Bytes

Contents

require 'action_dispatch/http/request'

class SlackLogDevice

  class SetRequestInThread

    def initialize(app)
      @app = app
    end

    def call(env)
      Thread.current[:slack_log_device_request] = ActionDispatch::Request.new(env)
      @app.call(env)
    end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
slack_log_device-6.1.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-6.0.1 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-6.0.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.5 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.4 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.3 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.2 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.1 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.1.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-5.0.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.2.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.1.0 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.0.3 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.0.2 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.0.1 lib/slack_log_device/set_request_in_thread.rb
slack_log_device-4.0.0 lib/slack_log_device/set_request_in_thread.rb