From b94b04b1d11b1d095918b8bae2b6b5f76f092cf7 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Wed, 15 Jun 2016 22:04:56 -0700 Subject: Fix and make example generic in README as well [ci skip] --- actioncable/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actioncable/README.md') diff --git a/actioncable/README.md b/actioncable/README.md index fa6a3ed0df..b5eababa90 100644 --- a/actioncable/README.md +++ b/actioncable/README.md @@ -378,11 +378,11 @@ App.cable = ActionCable.createConsumer() ### Other Configurations -The other common option to configure is the log tags applied to the per-connection logger. Here's close to what we're using in Basecamp: +The other common option to configure is the log tags applied to the per-connection logger. Here's an example that uses the user account id if available, else "no-account" while tagging: ```ruby -Rails.application.config.action_cable.log_tags = [ - -> request { request.env['bc.account_id'] || "no-account" }, +config.action_cable.log_tags = [ + -> request { request.env['user_account_id'] || "no-account" }, :action_cable, -> request { request.uuid } ] -- cgit v1.2.3