kaspth / oaken

A fresh blended alternative to Fixtures & FactoryBot for dev and test data.
MIT License
190 stars 6 forks source link

Auto-register namespaces #83

Closed kaspth closed 4 months ago

kaspth commented 4 months ago

Oaken now auto-registers namespaced models as well.

So in addition to accounts => Account, we can also auto-register partial and fully nested namespaces, in this order:

account_jobs => AccountJob | Account::Job
account_job_tasks => AccountJobTask | Account::JobTask | Account::Job::Task

If you have classes that don't follow this naming convention, you must call register manually.