On Jul 24, 2007, at 11:15 AM, Pratik wrote:

>
> Umm...what would you suggest as alternative for
> before/after_add/remove association collection callbacks ?

i'm not suggesting an alternative, i saying that just because docs  
*can* take the place of easy code doesn't mean they should.  i'd just  
hate to see this in the docs:

# this is how to write a 'before save' filter in rails
#
# save = method :save
#
# define_method :save do |*argv|
#   p 'before_save'
#   save.call *argv
# end

the declarative style of ar is a wonderful thing - better the  
leverage it rather than use docs imho.

regards.

a @ http://drawohara.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to