run_later solution for Merb 1.0.11

0 views
Skip to first unread message

Jacques Crocker

unread,
Jun 29, 2009, 5:46:19 PM6/29/09
to merb
Anyone using Passenger with Merb 1.0.11 is probably running into
issues with run_later. It's been fixed in 1.1, and it turns out the
fix was pretty trivial and has been extracted into a patch you can use
it in your existing Merb apps.

http://gist.github.com/137836

Save this file in merb/hacks/run_later.rb and then add this to your
config/init.rb before_app_loads block.

Merb::BootLoader.before_app_loads do
require "#{Merb.root}/merb/hacks/run_later.rb"
end

Been using this hack for a couple months in production and it has
worked as expected. Let me know if anyone sees an issue with it
Reply all
Reply to author
Forward
0 new messages