Module: Turbo::Streams::StreamName::ClassMethods

Included in:
Turbo::StreamsChannel
Defined in:
app/channels/turbo/streams/stream_name.rb

Instance Method Summary collapse

Instance Method Details

#verified_stream_name_from_paramsObject

Can be used by custom turbo stream channels to obtain signed stream name from params



18
19
20
# File 'app/channels/turbo/streams/stream_name.rb', line 18

def verified_stream_name_from_params
  self.class.verified_stream_name(params[:signed_stream_name])
end