Backgroundrb not loading other plugins


#1

Hi all,

I’m using a few different plugins on a project, but I’m having trouble
getting the plugins to load when running from backgroundrb (I’m using
the old win32 happy version).

Specifically, acts_as_ferret is not loading:

here’s the relevant part of the model:

class Book < ActiveRecord::Base
acts_as_ferret :fields => [:title, :description, :subject, :author]
end

I have to customize acts_as_ferret slightly so it’s installed as a
plugin rather than a gem. It’s loading fine via mongrel and the console,
but when backgroundrb loads the rails environment, it seems like it’s
there:

./script/backgroundrb/…/…/config/…/vendor/rails/activerecord/lib/active_record/base.rb:1248:in
method_missing': undefined methodacts_as_ferret’ for Book:Class
(NoMethodError)
from ./script/backgroundrb/…/…/config/…/app/models/book.rb:2
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’
etc…

Can anyone tell me how I can force the plugin to load?

thanks,
Dan