The example code from doc:
# app/channels/web_notifications_channel.rb
class WebNotificationsChannel < ApplicationCable::Channel
def subscribed
stream_for current_user
end
end
I have method current_user in ApplicationController. There error undefined method current_user id subscribed method of course becouse WebNotificationsChannel is not derived from ApplicationController. What doc mean? Or what I have missed?