Permalink
Browse files

Fixing requires for 1.9

  • Loading branch information...
zmoazeni committed Mar 10, 2011
1 parent 9cb9854 commit e40bcb4239525de5e3634d123f6472383445c16d
Showing with 3 additions and 10 deletions.
  1. +3 −10 init.rb
View
13 init.rb
@@ -1,10 +1,3 @@
-$:.unshift "#{File.dirname(__FILE__)}/lib"
-require 'sunspot'
-require 'composite_setup'
-require 'sunspot/dsl/fields'
-require 'sunspot/dsl/standard_query'
-require 'sunspot/type'
-require 'sunspot/field'
-require 'sunspot/setup'
-require 'sunspot/field_factory'
-require 'sunspot/indexer'
+%w(sunspot composite_setup sunspot/dsl/fields sunspot/dsl/standard_query sunspot/type sunspot/field sunspot/setup sunspot/field_factory sunspot/indexer).each do |file|
+ require File.join(File.dirname(__FILE__), 'lib', file)
+end

0 comments on commit e40bcb4

Please sign in to comment.