Sha256: 39de2e67937bc58254e5f7501641c48e3ce9abf3f5e80393c73e2c765bbe9617

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require 'tire'
require 'georgia/indexer/tire/georgia/page'
require 'georgia/indexer/tire/georgia/message'
require 'georgia/indexer/tire/ckeditor/asset'

module Georgia::Indexer
  class TireAdapter < Adapter

    def initialize
      extend_models
    end

    private

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

Version data entries

1 entries across 1 versions & 1 rubygems

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