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:
parent
1d9800b0ce
commit
1207d2b5c1
5 changed files with 17 additions and 4 deletions
0
myapp/app/assets/config/manifest.js
Normal file
0
myapp/app/assets/config/manifest.js
Normal 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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue