Marshal.dump fails for DataMapper::Resource when required by 'data_mapper' #174

Open
lance opened this Issue Jan 11, 2012 · 1 comment

Projects

None yet

1 participant

@lance
lance commented Jan 11, 2012

This issue is identical to the one discussed a while back in Lighthouse http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets/470-memcaching-can-t-marshal-dm-objects#ticket-470-21

See a test that illustrates the problem here: https://gist.github.com/1596396

The problem does not occur if dm-core and friends are explicitly required. Maybe require 'data_mapper' is out of style these days?

@lance
lance commented Jan 25, 2012

The issue is that require 'data_mapper' pulls in dm-validations which is the ultimate culprit.

Here's a pull request for a fix in the 1.2 line datamapper/dm-validations#52

@lance lance referenced this issue in datamapper/dm-validations Jun 18, 2014
Closed

Issue 174 release 1.2 dm-core #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment