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.

Preinitializer doesn't preinitialize.

#4279

The guides (http://guides.rails.info/configuring.html#using-a-preinitializer) describe how to use a pre-initializer, but pre-initializers seem not to be executed in rails3. For example, I can start an app with a pre-initializer at ./config/preinitializer.rb with contents raise Exception. The expected behavior is that app startup will fail immediately; the actual behavior is the same as if the file were not there.

Reported by y_feldblum (at yahoo) · March 27th, 2010 @ 02:03 AM

State: resolved
Milestone: 3.0.2
Assigned to: nobody
Importance: Low

Activity

  1. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • Tag changed from rails 3.0, rails3 server startup to rails3 server startup, rails3
    • Milestone cleared.

    March 27th, 2010 @ 07:55 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [bd69589143371254b6d71aa74b1230144eb30a9c]) preinitializer.rb is no longer needed, so remove it from the guide and replace with better suggestion. [#4279 state:resolved] http://github.com/rails/rails/commit/bd69589143371254b6d71aa74b1230...

    March 29th, 2010 @ 03:08 AM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM