While crafting the Passenger-Monit plugin, I thought that it'll be most appropriate to use the initializer, i.e.
module PassengerMonit
class Railtie < Rails::Railtie
initializer "my_plugin.some_init_task" do
# my initialization tasks
end
end
end
However, for some reason the code in the block was never executed. I finally made a work-around with
config.before_initialize {}
but I'm curious, why the initializer wasn't executed. What could have prevented it from running?