Hi, On Tue, Feb 1, 2011 at 2:13 AM, dev2 <[email protected]> wrote: > In my model I have save and update hooks. > When I do an update, it looks like the save call back gets run as > well. The update just calls the expected callback. > > Is this whats supposed to happen? If not, how can I call just one > specific method on save, update, destroy, etc.
Are you using the :create hook to differentiate from :update ? Both create and update methods generate :save callbacks as they should. http://rdoc.info/github/datamapper/dm-core/master/DataMapper/Model/Hook/Methods:hooks (view source) best regards, pedro mg -- http://blog.tquadrado.com http://twitter.com/pedro_mg -- 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.
