Sha256: d6a365831490ae98207676148fb3c15b9c39dfb4334bd731306a58cdf2c9fdeb

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

require 'sunspot_rails'
require 'georgia/indexer/solr/georgia/page'
require 'georgia/indexer/solr/georgia/message'
require 'georgia/indexer/solr/ckeditor/asset'
require 'georgia/indexer/solr/acts_as_taggable_on/tag'

module Georgia::Indexer
  class SolrAdapter < Adapter

    def initialize
      extend_models
    end

    private

    def extend_models
      ::Georgia::Page.send(:extend, Georgia::Indexer::Solr::Georgia::Page)
      ::Georgia::Message.send(:extend, Georgia::Indexer::Solr::Georgia::Message)
      ::Ckeditor::Asset.send(:extend, Georgia::Indexer::Solr::Ckeditor::Asset)
      ::ActsAsTaggableOn::Tag.send(:extend, Georgia::Indexer::Solr::ActsAsTaggableOn::Tag)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.7.3 lib/georgia/indexer/solr_adapter.rb