This project is archived and is in readonly mode.
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
-
David Trasbo April 10th, 2010 @ 05:53 PM
This has been fixed and can safely be marked as resolved:
config.to_prepare
delegates toActionDispatch::Callbacks.before_dispatch
. -
DHH May 4th, 2010 @ 05:30 PM
- State changed from new to resolved
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to
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>