Acts as ferret creates redundant default index directory?

Hi

I’m using a non-default index directory (acts_as_ferret :index_dir
option) but the unused default (./index/) is still created at load
time.

The culprits are the two calls to ensure_directory in the
init_index_basedir method in acts_as_ferret.rb that seem to be
redundant. Removing the calls to init_index_basedir fixes the problem
with no apparent side effects.

Cheers, Stuart

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs