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:
parent
7ad7550601
commit
761eeb1005
1 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue