search for: on_reset

Displaying 1 result from an estimated 1 matches for "on_reset".

Did you mean: in_reset
2006 Mar 02
3
reloadable classes for other base classes than the built-ins
...nt reloading to happen in between messages.) So ideally I would like to keep this outside ActionPack (ActionPack might not even be loaded for a lot of messaging applications!). So I was thinking maybe an ApplicationResetter that you could add stuff to, like so: in ActiveRecord: ApplicationResetter.on_reset do ActiveRecord::Base.reset_subclasses Dependencies.remove_subclasses_for(ActiveRecord::Base) end in ActionPack: ApplicationResetter.on_reset do Controllers.clear! ActiveRecord::Base.reset_subclasses Dependencies.remove_subclasses_for(ActionController::Base) end And wh...