[Ferret-talk] DrbServer incompatible with config.gem
Chris G.
cgansen at gmail.com
Tue Dec 2 17:18:45 EST 2008
I don't use the AAF gem, but do have a require statement in a
initializer in config/intializers that pulls in acts_as_ferret. Any
chance you can supply a more detailed back trace that sheds some light
on what class is causing trouble? Do you also have trouble booting
script/console?
-c-
Dave Anderson wrote:
> I recently upgraded to Rails 2.2.2 and refactored some of my rails code
> to use the config.gem functionality. In doing so, I noticed some odd
> behavior when trying to start the DrbServer. Essentially, the DrbServer
> will not start unless I have the "require 'acts_as_ferret" statement
> below in environment.rb. I thought the gem.config would have been
> enough, but apparently not.
>
> -- start environment.rb --
>
> Rails::Initializer.run do |config|
>
> [...]
>
> # Requires acts_as_ferret must be here, can't figure out why
> require 'acts_as_ferret'
>
> config.gem 'acts_as_ferret', :version => '0.4.3'
> config.gem 'ferret', :version => '0.11.6'
>
> [...]
>
> end
>
> -- end environment.rb --
>
> Here's the error message I receive when the require is left out.
>
> -- error --
>
> me at machina $ script/ferret_server -e production start
> undefined method `acts_as_ferret' for #<Class:0x22f9bec>
>
> -- end snip --
>
> Any ideas if this is normal?
--
Posted via http://www.ruby-forum.com/.
More information about the Ferret-talk
mailing list