aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/README.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-06-15 22:04:56 -0700
committerVipul A M <vipulnsward@gmail.com>2016-06-15 22:04:56 -0700
commitb94b04b1d11b1d095918b8bae2b6b5f76f092cf7 (patch)
tree48100b3d22ef981aa5a48ee31171fd9bfa2bed67 /actioncable/README.md
parent87d80ba976e4999808dcddb09aeb61766e0d8cca (diff)
downloadrails-b94b04b1d11b1d095918b8bae2b6b5f76f092cf7.tar.gz
rails-b94b04b1d11b1d095918b8bae2b6b5f76f092cf7.tar.bz2
rails-b94b04b1d11b1d095918b8bae2b6b5f76f092cf7.zip
Fix and make example generic in README as well [ci skip]
Diffstat (limited to 'actioncable/README.md')
-rw-r--r--actioncable/README.md6
1 files changed, 3 insertions, 3 deletions
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 }
]