mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove Zeitwerk inflection monkey patch.
There isn't a good reason we need to patch the inflector. Co-authored-by: Loïc Guitaut <loic@discourse.org>
This commit is contained in:
committed by
Loïc Guitaut
parent
b2a8dc4c0f
commit
5743a6ec1e
@@ -55,8 +55,6 @@ require 'pry-rails' if Rails.env.development?
|
||||
|
||||
require 'discourse_fonts'
|
||||
|
||||
require_relative '../lib/zeitwerk_config.rb'
|
||||
|
||||
if defined?(Bundler)
|
||||
bundler_groups = [:default]
|
||||
|
||||
@@ -69,6 +67,8 @@ if defined?(Bundler)
|
||||
Bundler.require(*bundler_groups)
|
||||
end
|
||||
|
||||
require_relative '../lib/require_dependency_backward_compatibility'
|
||||
|
||||
module Discourse
|
||||
class Application < Rails::Application
|
||||
|
||||
@@ -110,9 +110,6 @@ module Discourse
|
||||
config.autoloader = :zeitwerk
|
||||
|
||||
# Custom directories with classes and modules you want to be autoloadable.
|
||||
config.autoload_paths += Dir["#{config.root}/app"]
|
||||
config.autoload_paths += Dir["#{config.root}/app/jobs"]
|
||||
config.autoload_paths += Dir["#{config.root}/app/serializers"]
|
||||
config.autoload_paths += Dir["#{config.root}/lib"]
|
||||
config.autoload_paths += Dir["#{config.root}/lib/common_passwords"]
|
||||
config.autoload_paths += Dir["#{config.root}/lib/highlight_js"]
|
||||
|
||||
Reference in New Issue
Block a user