Config.plugins breaks w/ bundler?

I have a functioning 2.3.10 app using bundler. When I add this:

config.plugins = [ ‘exception_notification’, ‘ssl_requirement’,
‘sphinx’, ‘ssl_requirement’, ‘strip_attributes’, ‘subdomain-fu’,
‘validates_date_time’, ‘xss_terminate’]

to my environment.rb then all of a sudden my gems aren’t loaded:

./script/server
=> Booting WEBrick
=> Rails 2.3.10 application starting on http://0.0.0.0:3000
/Users/jsharpe/.rvm/gems/[email protected]/gems/
activesupport-2.3.10/lib/active_support/dependencies.rb:469:in
`load_missing_constant’: uninitialized constant
Delayed::Backend::ActiveRecord (NameError)

delayed job is in my Gemfile and works fine otherwise.

I was able to solve this by wrapping config.plugins w/
config.after_initialzier do:

config.after_initialize do
config.plugins = [ ‘exception_notification’, ‘ssl_requirement’,
‘sphinx’, ‘ssl_requirement’, ‘strip_attributes’, ‘subdomain-fu’,
‘validates_date_time’, ‘xss_terminate’]
end

…but this feels like a bit of hack.

Am I doing something wrong?

Josh