Sha256: 634f88e5d30431ff934ff9672c17d8970d72fef79129d12786759b622acc3151

Contents?: true

Size: 390 Bytes

Versions: 5

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::Search::StaleIdsException < StandardError
  attr_reader :ids, :context

  def initialize(ids, context)
    @ids = ids
    @context = context
  end

  def message
    "Record IDs found by Sphinx but not by ActiveRecord : #{ids.join(', ')}\n" \
    "https://freelancing-gods.com/thinking-sphinx/v5/common_issues.html#record-ids"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 lib/thinking_sphinx/search/stale_ids_exception.rb
thinking-sphinx-5.5.1 lib/thinking_sphinx/search/stale_ids_exception.rb
thinking-sphinx-5.5.0 lib/thinking_sphinx/search/stale_ids_exception.rb
thinking-sphinx-5.4.0 lib/thinking_sphinx/search/stale_ids_exception.rb
thinking-sphinx-5.3.0 lib/thinking_sphinx/search/stale_ids_exception.rb