To edit pages or tickets please login with username/password: aaf/aaf

Changeset 43

Show
Ignore:
Timestamp:
05/04/06 22:47:43 (3 years ago)
Author:
jk
Message:

fixing #14, index directory names are now lowercase and with :: replaced by '_'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/lib/acts_as_ferret.rb

    r41 r43  
    2626# loads. Until Ferret 0.9.x stabilizes, you should consider this 
    2727# version for production scenarios. 
    28 #require_gem 'ferret', '=0.3.2' 
     28require_gem 'ferret', '=0.3.2' 
    2929 
    3030# Ferret >=0.9, Ruby-only, is much slower than 0.3.2 with it's small C 
     
    3838# accessible yet. Several tests fail with this version, but basic single-index 
    3939# functionality is there and working. 
    40 require 'ferret' 
     40#require 'ferret' 
    4141 
    4242# Yet another Ferret Mixin. 
     
    8383       
    8484      def self.ensure_directory(dir) 
    85         Dir.mkdir dir unless File.directory? dir 
     85        FileUtils.mkdir_p dir unless File.directory? dir 
    8686      end 
    8787       
     
    174174          configuration = {  
    175175            :fields => nil, 
    176             :index_dir => "#{FerretMixin::Acts::ARFerret::index_dir}/#{self.name}", 
     176            :index_dir => "#{FerretMixin::Acts::ARFerret::index_dir}/#{self.name.underscore}", 
    177177            :store_class_name => false 
    178178          } 

To edit pages or tickets please login with username/password: aaf/aaf