datamapper/dm-validations — comment on commit d1ac374758f3ab3830dd68be7810afa23845a791
File:  line 0
By mbj:

@emmanuel bisected a failure on my app pointing to this commit.

The call trace is as follows, im trying to do a reduction.

undefined method `save_parents' for nil:NilClass
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1039:in `block (2 levels) in save_parents'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1036:in `map'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1036:in `block in save_parents'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1222:in `run_once'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1035:in `save_parents'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1006:in `block in _save'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1222:in `run_once'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:1005:in `_save'
# /home/mbj/.rvm/gems/ruby-1.9.3-p0/bundler/gems/dm-core-27b5b044c0db/lib/dm-core/resource.rb:405:in `save'
# /home/mbj/devel/dm-validations/lib/data_mapper/validation/resource_extensions.rb:33:in `block in save'
# /home/mbj/devel/dm-validations/lib/data_mapper/validation/context.rb:20:in `in_context'
# /home/mbj/devel/dm-validations/lib/data_mapper/validation/resource_extensions.rb:33:in `save'