Is there a new way to call a method similar to "update_without_callbacks" on an "after_save"? I need to calculate a total amount on a row after the row has been saved. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I believe update_attribute(:column, value) skips the callbacks. - Richard On Mar 18, 12:57 pm, Chris Parker <mrcspar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a new way to call a method similar to > "update_without_callbacks" on an "after_save"? > > I need to calculate a total amount on a row after the row has been > saved.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It still creates a loop. On Mar 18, 3:14 pm, Richard Luther <richard.lut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I believe update_attribute(:column, value) skips the callbacks. > - Richard > > On Mar 18, 12:57 pm, Chris Parker <mrcspar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Is there a new way to call a method similar to > > "update_without_callbacks" on an "after_save"? > > > I need to calculate a total amount on a row after the row has been > > saved.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---