Ruby on Rails Sunday, January 2, 2011

On Jan 2, 3:08 am, Guo Yangguang <li...@ruby-forum.com> wrote:

> when i define the after_save for Book,i think perhaps this after_save
> has overrided rails itself's implemented one,if so,i want to use both of
> them.
>
> is my consideration right?
> does rails use active_record callbacks? if it is true,how do i take care
> of myown's and rails'.

You don't have to guess - you can check what rails does. As far as I
can tell rails doesn't use actual after_save etc. method and always
uses the callback macros (after_save :foo etc.)

Fred

>
> --
> Posted viahttp://www.ruby-forum.com/.

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

No comments:

Post a Comment