Module: RailsSemanticLogger::ActionCable
- Defined in:
- lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb
Constant Summary collapse
- TaggedLoggerProxy =
Rails 8.2 moved the proxy from ActionCable::Connection to ActionCable::Server, as part of the ActionCable::Server::Socket refactor, without leaving a back-compat alias behind. Resolve whichever constant this version of ActionCable ships rather than hard-coding a namespace, so that a
requireof the old path cannot fail the app's boot. See #326. if defined?(::ActionCable::Server::TaggedLoggerProxy) ::ActionCable::Server::TaggedLoggerProxy else require "action_cable/connection/tagged_logger_proxy" ::ActionCable::Connection::TaggedLoggerProxy end