method
stream_or_reject_for
v6.1.7.7 -
Show latest stable
- Class:
ActionCable::Channel::Streams
stream_or_reject_for(record)public
Calls stream_for if record is present, otherwise calls reject. This method is intended to be called when you’re looking for a record based on a parameter, if its found it will start streaming. If the record is nil then it will reject the connection.