Sha256: 82354b9547338784a8d9a7e65a52369702c5ee9e6eab9a26d0898bb742f6411f

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

class ThinkingSphinx::Distributed::Index <
  Riddle::Configuration::DistributedIndex

  attr_reader :reference, :options

  def initialize(reference)
    @reference = reference
    @options   = {}

    super reference.to_s.gsub('/', '_')
  end

  def delta?
    false
  end

  def distributed?
    true
  end

  def model
    @model ||= reference.to_s.camelize.constantize
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinking-sphinx-3.3.0 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.2.0 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.1.4 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.1.3 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.1.2 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.1.1 lib/thinking_sphinx/distributed/index.rb
thinking-sphinx-3.1.0 lib/thinking_sphinx/distributed/index.rb