Skip to content

Commit

Permalink
Tiny code example fix [ci skip]
Browse files Browse the repository at this point in the history
The code example wasn't properly formatted because of missing line
break.
  • Loading branch information
p8 committed Dec 22, 2019
1 parent 0cf2815 commit 4697748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guides/source/action_cable_overview.md
Expand Up @@ -123,8 +123,9 @@ or unauthorized).
If your authentication approach includes using a session, you use cookie store for the
session, your session cookie is named `_session` and the user ID key is `user_id` you
can use this approach:

```ruby
verified_user = User.find_by(id: cookies.encrypted['_session']['user_id'])
verified_user = User.find_by(id: cookies.encrypted['_session']['user_id'])
```

### Channels
Expand Down

0 comments on commit 4697748

Please sign in to comment.