Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-register namespaces #83

Merged
merged 3 commits into from
Jun 30, 2024
Merged

Auto-register namespaces #83

merged 3 commits into from
Jun 30, 2024

Commits on Jun 30, 2024

  1. Auto-register namespaces

    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.
    kaspth committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    865d084 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76e6a2a View commit details
    Browse the repository at this point in the history
  3. Add a partial namespace test

    kaspth committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    6c0dc9c View commit details
    Browse the repository at this point in the history