Hi Ben, You might want to take a look at http://github.com/shanna/dm-money although I'm not sure if it's going to be compatible with DataMapper 1.0. Regarding EmbeddedValue - it's scheduled for some 1.x.x release and the work hasn't been started yet but will start pretty soon so stay tuned. In case of any questions please jump into #datamapper on IRC :)
Cheers, // solnic On Jun 5, 5:54 pm, Ben <[email protected]> wrote: > Hello all, > > I'm new to DataMapper (and really liking it!), and I need to model > Money (amount, currency). What's the best way to do this? > > In ActiveRecord, you have the composed_of helper to cleanly create the > Embedded Value pattern. I've looked around, and there seems to be some > artifacts/evidence for a Embedded Value plugin/functionality existing > for DataMapper, but I'm a little confused as to its current state. It > looks like its on the roadmap, but I've seen posts from several years > ago referring to Embedded Value. The plugins page on Github lists a > composite plugin, but that repo doesn't exist! (http://github.com/ > glasner/dm-composite/). What's going on here? > > Thanks! > Ben -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
