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.

after_save_or_destroy

#4482

so currentl, if you want a callback to fire when an object is deleted or saved... you have to do

def after_save
blah

end

def after_destroy
blah

end

what if there was a new callback called after_save_or_destroy?

then i'd jsut do:

def after_save_or_destroy
blah

end

DRY

Reported by Michael Economy · April 27th, 2010 @ 01:32 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    Create a plugin that provides this functionality. Should not be core imo.

    April 27th, 2010 @ 04:50 AM