datamapper/dm-validations — pull request #52 by lance (2012-01-24 14:42:59+00:00)
Title: Issue 174 release 1.2 dm-core

Good morning. This is a fix for release 1.2 for dm-core issue #174 https://github.com/datamapper/dm-core/issues/174

According to old Lighthouse bugs and such, the issue has been resolved in dm-core a while back. But it seems, if you require dm-validations (or require 'data_mapper' since it does this by proxy), then things go bad again. This is because there are several places within dm-validations where a default value is generated by a proc supplied to the Hash constructor. Marshal.dump/load doesn't deal well with procs for default values. This should all be resolved in the 1.2 line.

I'm working on a fix for the master branch, but it seems this pattern of using procs for hash defaults has propagated, and there is much more to muck with for the master branch.

Lance