Changeset 43
- Timestamp:
- 05/04/06 22:47:43 (3 years ago)
- Files:
-
- trunk/plugin/acts_as_ferret/lib/acts_as_ferret.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/lib/acts_as_ferret.rb
r41 r43 26 26 # loads. Until Ferret 0.9.x stabilizes, you should consider this 27 27 # version for production scenarios. 28 #require_gem 'ferret', '=0.3.2'28 require_gem 'ferret', '=0.3.2' 29 29 30 30 # Ferret >=0.9, Ruby-only, is much slower than 0.3.2 with it's small C … … 38 38 # accessible yet. Several tests fail with this version, but basic single-index 39 39 # functionality is there and working. 40 require 'ferret'40 #require 'ferret' 41 41 42 42 # Yet another Ferret Mixin. … … 83 83 84 84 def self.ensure_directory(dir) 85 Dir.mkdirdir unless File.directory? dir85 FileUtils.mkdir_p dir unless File.directory? dir 86 86 end 87 87 … … 174 174 configuration = { 175 175 :fields => nil, 176 :index_dir => "#{FerretMixin::Acts::ARFerret::index_dir}/#{self.name }",176 :index_dir => "#{FerretMixin::Acts::ARFerret::index_dir}/#{self.name.underscore}", 177 177 :store_class_name => false 178 178 }
