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 deserialize with JSON array #28295

Merged
merged 1 commit into from Mar 6, 2017

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Mar 5, 2017

Fixes #28285.

@kamipo kamipo force-pushed the fix_deserialize_with_json_array branch from d4cf7d6 to 6ec2e8a Compare March 5, 2017 23:53
@@ -23,7 +23,7 @@ def deserialize(value)
when ::String
type_cast_array(@pg_decoder.decode(value), :deserialize)
when Data
deserialize(value.values)
type_cast_array(value.values, :deserialize)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

values in Data is an array of serialized strings. So we need to deserialize each strings.

@pixeltrix pixeltrix merged commit 0b5c7e3 into rails:master Mar 6, 2017
@kamipo kamipo deleted the fix_deserialize_with_json_array branch March 6, 2017 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants