Exception: ThinkingSphinx::Search::StaleIdsException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/thinking_sphinx/search/stale_ids_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ids) ⇒ StaleIdsException



4
5
6
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 4

def initialize(ids)
  @ids = ids
end

Instance Attribute Details

#idsObject (readonly)

Returns the value of attribute ids



2
3
4
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 2

def ids
  @ids
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 8

def message
  "Record IDs found by Sphinx but not by ActiveRecord : #{ids.join(', ')}"
end