I'll go with the 'hooks' then :-) Thanks again
On Tue, Mar 10, 2009 at 9:56 AM, Rafael Rosa <rafaelros...@gmail.com> wrote: > As I commented before, from my point of view, using hooks is a cleaner way > to do that: it's less intrusive in the sense that you're not changing the > implementation of any methods, and more declarative, because the "before > :save, :add_interested" is read as a business rule, it's more explicit. > Another advantage is that you can add other rules without touching any code > already written, which make it more stable, a kind of "open-closed > principle". > > But, in the end, taste is the tie breaker :) > > Cheers, > Rafael > www.rafaelrosafu.com > > > > -- Rafael George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamapper@googlegroups.com To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---