Walter Lee Davis
2011-Mar-08 16:49 UTC
Can I disable Observers from a single controller method?
I need to stop an after_update Observer method from running, but only in one method of a related controller. I want to be able to change the sort order in acts_as_list without triggering the whole after_update business, since nothing that that Observer was interested in has actually happened. Alternatively, is there a finer-grained way to call the Observer? Something like Prototype.js''s synthetic events as defined in Event.fire()? Thanks, Walter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.