Closed szechyjs closed 2 years ago
Having ApplicationController
inherit from ActionController::API
is only intended for apps that don't do any rendering at all. Could see clarifying this as a doc item, but don't think we want to support the anti pattern of making that configurable.
If the main
ApplicationController
inherits fromActionController::API
it prevents theBroadcast#render_format
method from working, it will always return" "
.https://github.com/hotwired/turbo-rails/blob/main/app/channels/turbo/streams/broadcasts.rb#L86
It would be nice if the base controller for broadcasts were configurable.