Do you have controller methods or initializers that call ActionCable directly by name? Because if not, I suppose just commenting out that gem and bundling and restarting would get "rid" of it temporarily. But if you had any code that called it, that would bomb and your app would not start up. I suspect you're going to have to go through the app and put a feature flag around the whole thing, so you can turn it off and on with a config variable.
Walter
> On Jan 4, 2018, at 2:34 PM, David McDonald <daveomcd@gmail.com> wrote:
>
> I'm trying to debug an issue with my application and I'm wanting to remove Action Cable temporarily. How can I do this, where when the server starts Action Cable doesn't, yet I don't have to remove all my code that I've already put in place? Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f2b25b5c-1dfa-4800-a3b4-49052265f487%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5FD29BA9-309F-493B-9175-45D92ECE3F9A%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment