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

Is it possible to add global option for setting key_format #117

Open
saygun opened this issue Mar 20, 2020 · 0 comments
Open

Is it possible to add global option for setting key_format #117

saygun opened this issue Mar 20, 2020 · 0 comments

Comments

@saygun
Copy link

saygun commented Mar 20, 2020

Hi all. Upcoming JSON:API version recommending camelCase. Currently, I derived serializable resources from base one which defines key format as:

key_format ->(key) { key.to_s.camelize(:lower) }

Is it possible to define it in the initializer globally? If not so, I could start working on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant