Hi, I've been trying to setup an in memory adapter example for DM2.
Want to use it in a project, so this is kind of an experiment.
Anyway, I'm having trouble inserting records.
The commented out attempt was taken from dm-mapper source, as noted.
And it fails with the described exception.
The currently active attempt does not complain, but the records are not found later in assertion.
With <at> dkubb's help, here are a bit more details that might be helpfull...
The insert method returns PersonMapper instance, for which I'd expect to contain the new record.
Interestingly, <at> mapper.insert(Person.new(id: 1, name: 'Jane')).all returns 2 element array:
["#<Person:0x000000039339d0 <at> id=:id, <at> name=1>", "#<Person:0x00000003813118 <at> id=:name, <at> name="Jane">"]
Any suggestions on how to approach this?
--
You received this message because you are subscribed to the Google Groups "DataMapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datamapper+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to datamapper-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at
http://groups.google.com/group/datamapper?hl=en.
For more options, visit
https://groups.google.com/groups/opt_out.