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

[Feat] It now infers resource name from Serializer #309

Merged
merged 3 commits into from
Mar 26, 2023

Commits on Mar 21, 2023

  1. [Feat] It now infers resource name from Serializer

    Resource name inference worked like below:
    
    |Class name|Resource name|
    | --- | --- |
    | FooResource | Foo |
    | FooSerializer | FooSerializer |
    | FooElse | FooElse |
    
    However we noticed that lots of users use the term `Serializer` and the current behavior is not convenient.
    It now works like below:
    
    |Class name|Resource name|
    | --- | --- |
    | FooResource | Foo |
    | FooSerializer | Foo |
    | FooElse | FooElse |
    
    It now deletes `Serializer` suffix as well.
    okuramasafumi committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    4d74374 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. [Refactor] Check inflector in resource_name

    This simplifies `_key` and `_collection_key`.
    okuramasafumi committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    71dee09 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. [Doc] Add "Naming" section to README

    Now that Alba supports "Serializer" suffix it should be mentioned.
    okuramasafumi committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    cee0875 View commit details
    Browse the repository at this point in the history