Posted over 12 years ago. Visible to the public. Linked content.

paperplanes. run_later Gets Some Rails 2.3 Middleware Love

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.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Lexy
Last edit:
about 11 years ago
Keywords:
rails
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Lexy to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more