make zeitwerk happy

This commit is contained in:
Donovan Daniels 2024-10-24 03:20:06 -05:00
parent e76d356fdc
commit 8f5fd85f15
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
3 changed files with 14 additions and 13 deletions

View File

@ -41,7 +41,7 @@ module Websites
config.good_job.enable_cron = true config.good_job.enable_cron = true
config.middleware.insert_before(0, Middleware::DevHost) if Rails.env.development? config.middleware.insert_before(0, Middleware::DevHost) if Rails.env.development?
config.middleware.insert_before(Rails::Rack::Logger, SilenceGoodJobLogging) config.middleware.insert_before(Rails::Rack::Logger, Middleware::SilenceGoodJobLogging)
config.middleware.insert_before(ActionDispatch::Static, Middleware::CustomStatic, { config.middleware.insert_before(ActionDispatch::Static, Middleware::CustomStatic, {
/^i\.furry\.cool/ => "/furry.cool/images", /^i\.furry\.cool/ => "/furry.cool/images",
/^i\.maid\.gay/ => "/maid.gay/images", /^i\.maid\.gay/ => "/maid.gay/images",

View File

@ -83,4 +83,3 @@ production:
<<: *default <<: *default
database: websites database: websites
password: <%= ENV["WEBSITES_DATABASE_PASSWORD"] %> password: <%= ENV["WEBSITES_DATABASE_PASSWORD"] %>
pool: <%= ENV.fetch("WEBSITES_DATABASE_POOL") { 10 } %>

View File

@ -1,6 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
class SilenceGoodJobLogging module Middleware
class SilenceGoodJobLogging
def initialize(app) def initialize(app)
@app = app @app = app
end end
@ -16,4 +17,5 @@ class SilenceGoodJobLogging
@app.call(env) @app.call(env)
end end
end end
end
end end