Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
so currentl, if you want a callback to fire when an object is deleted or saved... you have to do def after_save blah
def after_save blah
end
def after_destroy blah
what if there was a new callback called after_save_or_destroy?
then i'd jsut do: def after_save_or_destroy blah
def after_save_or_destroy blah
DRY
Reported by Michael Economy · April 27th, 2010 @ 01:32 AM
Create a plugin that provides this functionality. Should not be core imo.
April 27th, 2010 @ 04:50 AM