lib/georgia/indexer/solr_adapter.rb in georgia-0.7.4 vs lib/georgia/indexer/solr_adapter.rb in georgia-0.7.5
- old
+ new
@@ -1,5 +1,5 @@
-require 'sunspot_rails'
+require 'sunspot_rails' if defined?(Sunspot)
Dir[File.join(File.dirname(__FILE__), 'extensions', 'solr_adapter', '*.rb')].each {|file| require file }
module Georgia
module Indexer
class SolrAdapter
\ No newline at end of file