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

Marshall.dump TypeError: can't dump hash with default proc with Rails 5 #911

Closed
jvenezia opened this issue May 27, 2016 · 1 comment
Closed

Comments

@jvenezia
Copy link

jvenezia commented May 27, 2016

Rails 5 introduces model.errors.details rails/rails#18322

When creating a model instance with facotry_girl, it is impossible to dump it:

Marshal.dump FactoryGirl.create :user
# => TypeError: can't dump hash with default proc

You can test this with Rails 3&4 thanks to this gem https://github.com/cowbell/active_model-errors_details .

Without this Rails 5 feature or this gem it works fine.

@jvenezia
Copy link
Author

jvenezia commented May 27, 2016

Just realised the problem is from Rails. I'm moving the issue, sorry.

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

No branches or pull requests

1 participant