Skip to content

Commit

Permalink
Document null inflector and case-insensitive file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Feb 6, 2024
1 parent 0f006a8 commit 0c20583
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ This inflector is experimental since Ruby usually goes for snake case in files a

The null inflector cannot be used in Rails applications because the `main` autoloader also manages engines. However, you could subclass the default inflector and override `camelize` to return the basename untouched if it starts with an uppercase letter. Generators would not create the expected file names, but you could still experiment to see how far this approach takes you.

In case-insensitive file systems, this inflector works as long as directory listings return the expected strings. Zeitwerk lists directories using Ruby APIs like `Dir.children` or `Dir.entries`.

<a id="markdown-custom-inflector" name="custom-inflector"></a>
#### Custom inflector

Expand Down

0 comments on commit 0c20583

Please sign in to comment.