Skip to content

Commit

Permalink
Do not require unnecessary components
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Sep 23, 2024
1 parent 9571931 commit fbb4947
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
require_relative "boot"

require "rails/all"
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
# require "action_cable/engine" # Exclude ActionCable
# require "active_storage/engine" # Exclude ActiveStorage
# require "action_mailbox/engine" # Exclude ActionMailbox

Bundler.require(*Rails.groups)

Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
end

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# config.active_storage.service = :local

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
config.action_controller.allow_forgery_protection = false

# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test
# config.active_storage.service = :test

config.action_mailer.perform_caching = false

Expand Down

0 comments on commit fbb4947

Please sign in to comment.