Skip to content

Commit

Permalink
Merge pull request #127 from krzysiek1507/feature/speed-up-inflector
Browse files Browse the repository at this point in the history
Capitialize! parts of basename
  • Loading branch information
fxn committed Jun 29, 2020
2 parents a786fe5 + fdc3969 commit b24730c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zeitwerk/inflector.rb
Expand Up @@ -15,7 +15,7 @@ class Inflector
# @param _abspath [String]
# @return [String]
def camelize(basename, _abspath)
overrides[basename] || basename.split('_').map!(&:capitalize).join
overrides[basename] || basename.split('_').each(&:capitalize!).join
end

# Configures hard-coded inflections:
Expand Down

0 comments on commit b24730c

Please sign in to comment.