1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Remove annoying bits of Rails that just make our life harder

This commit is contained in:
Mike Perham 2020-03-17 10:12:59 -07:00
parent 1d9800b0ce
commit 1207d2b5c1
5 changed files with 17 additions and 4 deletions

View file

View file

@ -1,6 +1,19 @@
require_relative 'boot'
require 'rails/all'
require 'rails'
%w(
active_record/railtie
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
sprockets/railtie
).each do |railtie|
begin
require railtie
rescue LoadError
end
end
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.

View file

@ -28,7 +28,7 @@ Rails.application.configure do
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

View file

@ -39,7 +39,7 @@ Rails.application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Store uploaded files on the local file system (see config/storage.yml for options)
config.active_storage.service = :local
#config.active_storage.service = :local
# Mount Action Cable outside main process or domain
# config.action_cable.mount_path = nil

View file

@ -29,7 +29,7 @@ Rails.application.configure do
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