paperplanes. run_later Gets Some Rails 2.3 Middleware Love

Updated . Posted . Visible to the public.

In earlier version I needed to do an awkward thing that only affected development mode, where Rails unloads all classes after each request. run_later runs code in a separate thread, and depending on how long that code runs the classes would be unloaded when they're still accessed from the worker.

Last edit
Keywords
rails
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2009-04-22 07:58)