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.

preparation callbacks are gone

#3039

Lots of plugins use config.to_prepare. It looks like we're supposed to add callback hooks to ActionDispatch now. Rails::Configuration should probably do that for us.

Here's what the OpenIDAuthentication plugin's init.rb looks like in my edit:

init_block = lambda do
  OpenID::Util.logger = Rails.logger
  ActionController::Base.send :include, OpenIdAuthentication
end

if defined? ActionDispatch::Callbacks
  ActionDispatch::Callbacks.before_dispatch(&init_block)
else
  config.to_prepare(&init_block)
end

Reported by Rick · August 12th, 2009 @ 06:35 AM

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

Activity

  1. David Trasbo
    David Trasbo

    This has been fixed and can safely be marked as resolved: config.to_prepare delegates to ActionDispatch::Callbacks.before_dispatch.

    April 10th, 2010 @ 05:53 PM

  2. DHH
    DHH
    • State changed from new to resolved

    May 4th, 2010 @ 05:30 PM

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

    October 15th, 2010 @ 11:01 PM