Sha256: 8a6a28c3600d0b1db2e4f69765173e83c06e0efb5cd016a172c8295667f1e502

Contents?: true

Size: 221 Bytes

Versions: 3

Compression:

Stored size: 221 Bytes

Contents

module InboundRequestsLogger
  extend ActiveSupport::Concern

  private

  def attach_inbound_request_loggable(loggable)
    request.env["INBOUND_REQUEST_LOG"].update(loggable: loggable) if loggable&.persisted?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_api_logger-0.6.3 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.6.2 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.6.1 lib/rails_api_logger/inbound_requests_logger.rb