Tiberiu, can you update the attributes before the save? ..tony.. On Tue, Aug 18, 2009 at 7:39 PM, Mr_Tibs <[email protected]> wrote:
> > Hi, > > I have the situation where I define a callback after save. In the > callback, I need to update some of the object's attributes. Calling > update_attributes() or save() from the callback will result in an > infinite loop (since the callback will be called again). > How can I do to solve this problem? > > Thanks, > Tiberiu > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
