Skip to content

Allow inspected records to be marshaled #37153

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

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

eugeneius
Copy link
Member

Fixes #36401.

Since #34208, records which have had inspect called on them can't be marshaled, because of this anonymous DelegateClass. We can fix this by giving the class a concrete name.

Since 32b03b4, records which have had
`inspect` called on them can't be marshaled, because of this anonymous
`DelegateClass`. We can fix this by giving the class a concrete name.
@kamipo kamipo merged commit 65f9112 into rails:master Sep 8, 2019
kamipo added a commit that referenced this pull request Sep 8, 2019
Allow inspected records to be marshaled
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.

Marshal.dump raises TypeError on ActiveRecord instance
2 participants