This project is archived and is in readonly mode.

#3039 ✓resolved
Rick

preparation callbacks are gone

Reported by Rick | August 12th, 2009 @ 06:35 AM | in 3.0.2

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

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages