Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Initializers aren't run on gem dependency failure

#814

If you don't have a gem you've added to config.gem, your server starts with a warning, but your config/initializers/*.rb files aren't run. It looks like your after_initialize block isn't run, either.

If your app should refuse to run on a missing gem, that's fine, but you should throw an exception. Personally, I'm fine with the current behavior, where you just get a warning. However, the current behavior makes no sense and it's a pain to troubleshoot.

I've also included a test for the initializers folder behavior, since I couldn't find an existing test anywhere.

Reported by Ben Sandofsky · August 13th, 2008 @ 03:49 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to wontfix

    I'd have to double check with Rick, but there was a good reason to add that check in.

    November 22nd, 2008 @ 07:34 PM