I've created a patch for an issue I ran into where model callbacks
will be called multiple time. See ticket:
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/764-observers-on-a-model-are-called-multiple-times

This happens because the class file is required multiple times, and
the callbacks are added on every read. The patch adds a check before
defining a callback to see if the method name is already added.



--~--~---------~--~----~------------~-------~--~----~
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 
rubyonrails-core+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to