Skip to content

Commit

Permalink
Require ActionCable and ActiveJob to workaround a bug
Browse files Browse the repository at this point in the history
Even if these aren't being used, it turns out that turbo-rails still
tries to autoload them in production. See:

  * hotwired/turbo-rails#478
  * hotwired/turbo-rails#512

There's a workaround for the ActionCable issue but not for the
ActiveJob one, so we just relent and require them.
  • Loading branch information
mjbellantoni committed Mar 16, 2024
1 parent 18819fd commit cc903f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
# require "active_job/railtie"
require "active_job/railtie"
# require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
# require "action_mailer/railtie"
# require "action_mailbox/engine"
# require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
require "action_cable/engine"
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
Expand Down

0 comments on commit cc903f1

Please sign in to comment.