Kurt Stephens

Nerd Up!

DataMapper

How to duplicate DataMapper objects

Kurt on Sun, 2008-11-16 21:04.

How to create a deep clone of a DataMapper::Resource object so it can be stored in a different repository.

This does not work:

obj = Foo.first
obj = obj.dup
repository(:other) { obj.save }

<br class="clear" />

Ruby DataMapper : dm-more Gem cannot be installed

Kurt on Sun, 2008-07-20 06:13.

dm-more depends on merb_datamapper (!?!) version 0.9.3 which does not appear to exist yet:

++ gem install dm-more
ERROR:  Error installing dm-more:
	dm-more requires merb_datamapper (= 0.9.3, runtime)

Not sure what to do about it.


Syndicate content

Primary links

Syndicate

Syndicate content

Browse archives

« February 2012  
Mo Tu We Th Fr Sa Su
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29