Sha256: 2b4a994693eed8ea3a18bc17fd92efe6f452719448cc2ca146c661591e28abbf
Contents?: true
Size: 303 Bytes
Versions: 7
Compression:
Stored size: 303 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 ActiveSupport.on_load(:action_controller) do include InboundRequestsLogger end
Version data entries
7 entries across 7 versions & 1 rubygems