Last active
September 18, 2022 17:52
-
-
Save michalkorzawski/85d70f57ac144d0586d5ed2b2d3013c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # app/channels/user_channel.rb | |
| class UserChannel < ApplicationCable::Channel | |
| def subscribed | |
| stream_for current_user | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment