Hello, I'm currently using DataMapper for a project with rails, and I need the rails concept of sweepers.
Since I couldn't find anything existing that would fit my needs, I wrote a DataMapper::Sweeper. I've posted a gist here: https://gist.github.com/959857 I few things about it: * It is pretty Rails-centric as it is tightly integrated with the Rails controller. * Unlike other DM callbacks, Sweeper's callbacks cannot reference the observed object as self. I put a lot of thought into this api change, and there is a discussion about it in the gist. * I have not yet made a gem of it, but I could if others would find it useful. Feedback? -Amiel -- 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.
