Module: Rails::Autoloaders::Inflector

Defined in:
railties/lib/rails/autoloaders/inflector.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.camelize(basename, _abspath) ⇒ Object



12
13
14
# File 'railties/lib/rails/autoloaders/inflector.rb', line 12

def self.camelize(basename, _abspath)
  @overrides[basename] || basename.camelize
end

.inflect(overrides) ⇒ Object



16
17
18
# File 'railties/lib/rails/autoloaders/inflector.rb', line 16

def self.inflect(overrides)
  @overrides.merge!(overrides)
end