if I define this in a model: after_create :process, :secondary_processing can I assume that the callbacks are called in that particular order? first process, then the secondary_processing. Thanks, Jonzo. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jonathan Fantham wrote:> if I define this in a model: > > after_create :process, :secondary_processing > > can I assume that the callbacks are called in that particular order? > first process, then the secondary_processing. > > Thanks, > Jonzo.Yes, correct, the callbacks are called in the order that they are defined according to the rails api.. hth ilan -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks ilan On Tue, Mar 18, 2008 at 2:53 PM, Ilan Berci <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Jonathan Fantham wrote: > > if I define this in a model: > > > > after_create :process, :secondary_processing > > > > can I assume that the callbacks are called in that particular order? > > first process, then the secondary_processing. > > > > Thanks, > > Jonzo. > > Yes, correct, the callbacks are called in the order that they are > defined according to the rails api.. > > hth > > ilan > -- > Posted via http://www.ruby-forum.com/. > > > >-- Jonathan --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---