Sha256: f8c7d7bdf50e928075c00125963d3a616e5d3792c1ef3c70a58d482abed07997

Contents?: true

Size: 283 Bytes

Versions: 6

Compression:

Stored size: 283 Bytes

Contents

module InboundRequestsLogger
  extend ActiveSupport::Concern

  private

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_api_logger-0.10.0 app/controllers/inbound_requests_logger.rb
rails_api_logger-0.9.0 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.8.2 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.8.1 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.8.0 lib/rails_api_logger/inbound_requests_logger.rb
rails_api_logger-0.7.0 lib/rails_api_logger/inbound_requests_logger.rb