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

Fix custome serializer setting #32002

Merged
merged 1 commit into from
Feb 17, 2018
Merged

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Feb 15, 2018

The serializer should be set up in after_initialize so that it work properly even if the user specifies serializer with initializers.

Also, since custom_serializers is Array, it needs to be flattened before setting the value.

@y-yagi y-yagi force-pushed the fix_set_serializer branch 3 times, most recently from a109612 to c23ef16 Compare February 15, 2018 08:29
The serializer should be set up in `after_initialize` so that it work
properly even if the user specifies serializer with initializers.

Also, since `custom_serializers` is `Array`, it needs to be flattened
before setting the value.
@rafaelfranca rafaelfranca merged commit 21cc043 into rails:master Feb 17, 2018
@y-yagi y-yagi deleted the fix_set_serializer branch March 10, 2018 08:11
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

Successfully merging this pull request may close these issues.

None yet

2 participants