Skip to content

Commit

Permalink
Only require necessary railties
Browse files Browse the repository at this point in the history
With the upgrade from Rails 6.0 to 6.1 active storage
complains about the missing configuration file. Since
we are not using active storage anywhere in the project
the easiest way is to disable it.

See rails/rails#41106
  • Loading branch information
krauselukas committed Jun 25, 2021
1 parent f29704e commit bbe1e31
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/api/config/application.rb
@@ -1,6 +1,14 @@
require_relative 'boot'

require 'rails/all'
require 'rails'
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'action_mailer/railtie'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
require 'rails/test_unit/railtie'

# Assets should be precompiled for production (so we don't need the gems loaded then)
Bundler.require(*Rails.groups(assets: ['development', 'test']))
Expand Down

0 comments on commit bbe1e31

Please sign in to comment.