V1.3: Use Your Own ORM
Hanami components are decoupled from each other. This level of separation allows you to use the ORM (data layer) of your choice.
Here’s how to do it:
- Edit your
- Add the gem(s) for your ORM.
- Remove folders that are no longer needed:
lib/project_name/ is a good place to put code that’s used across
apps, so we don’t recommend getting rid of it entirely. That’s also where
Hanami’s mailers live. We recommend that you put your new ORM code into that
folder, but you’re free to put it elsewhere, and get rid of
lib/ entirely, if