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

Make actionview templates marshalable #34030

Merged
merged 1 commit into from
Sep 30, 2018
Merged

Conversation

lsylvester
Copy link
Contributor

When running parallel tests, any errors raised in an ActionView::Template are reported as DRb::DRbServerNotFound (DRb::DRbConnError).

This is because this errors contain references to the template, which contain reference a Mutex which can't be marshalled.

This PR makes the Marshal.dumping of a template exclude the Mutex so that it can be transmitted over DRb.

@rails-bot
Copy link

r? @kamipo

(@rails-bot has picked a reviewer for you, use r? to override)

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

4 participants