lib/georgia/indexer/solr_adapter.rb in georgia-0.7.6 vs lib/georgia/indexer/solr_adapter.rb in georgia-0.7.7

- old
+ new

@@ -1,14 +1,19 @@ module Georgia module Indexer module SolrAdapter + extend Adapter require 'sunspot_rails' if defined?(Sunspot) - # Delegate search_index to the model - # Search method is taken by Sunspot - def self.search model, params - model.search_index model, params + class << self + + # Delegate search_index to the model + # Search method is taken by Sunspot + def search model, params + model.search_index(model, params) + end + end end end end \ No newline at end of file