Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: jurrack
Yes there is a way, I recommend only to use in development, it has some drawbacks.
config.cache_classes = false
config.eager_load = false
using the pubsub approach within the ActionController::Live we ended up with a lot of Threads that are never closed. I think Redis subscribe and psubscribe are blocking the created Thread and stream.close will never be called, will check this soon.
What we've noticed gets even worse with new visitor and each page reload we ended up with a new Thread. At the end we had many Threads sleeping consuming all available Threads for puma.
There is also an issue at github addressing this: https://github.com/rails/rails/issues/10989#issuecomment-21305888