Skip to content

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