1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update module definition style

This commit is contained in:
Xavier Noria 2022-01-05 20:47:22 +01:00
parent 7ad7550601
commit 761eeb1005

View file

@ -2,16 +2,20 @@
require "active_support/inflector"
module Rails::Autoloaders::Inflector # :nodoc:
# Concurrent::Map is not needed. This is a private class, and overrides
# must be defined while the application boots.
@overrides = {}
module Rails
class Autoloaders
module Inflector # :nodoc:
# Concurrent::Map is not needed. This is a private class, and overrides
# must be defined while the application boots.
@overrides = {}
def self.camelize(basename, _abspath)
@overrides[basename] || basename.camelize
end
def self.camelize(basename, _abspath)
@overrides[basename] || basename.camelize
end
def self.inflect(overrides)
@overrides.merge!(overrides)
def self.inflect(overrides)
@overrides.merge!(overrides)
end
end
end
end