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/ree-1.8.7-2010.02@razoo/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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.