dry-rb / dry-rails

The official dry-rb railtie
https://dry-rb.org/gems/dry-rails
MIT License
270 stars 27 forks source link

Set up default inflector to be ActiveSupport::Inflector #17

Closed solnic closed 4 years ago

solnic commented 4 years ago

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).