This sets up ActiveSupport::Inflector as the default inflector and exposes it via the container too. This makes sense because we want to inject inflectors as dependencies too, rather than referring to global constants. This gives more flexibility, which can be really useful ie when you need customized inflections just in one part of the app (yes, it can happen).
This sets up
ActiveSupport::Inflector
as the default inflector and exposes it via the container too. This makes sense because we want to inject inflectors as dependencies too, rather than referring to global constants. This gives more flexibility, which can be really useful ie when you need customized inflections just in one part of the app (yes, it can happen).