Module: Kiosk::Indexer::Adapter::ThinkingSphinxAdapter::Context

Defined in:
lib/kiosk/indexer/adapter/thinking_sphinx_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexed_resourcesObject (readonly)

Returns the value of attribute indexed_resources.



166
167
168
# File 'lib/kiosk/indexer/adapter/thinking_sphinx_adapter.rb', line 166

def indexed_resources
  @indexed_resources
end

Instance Method Details

#add_indexed_resource(resource) ⇒ Object



168
169
170
171
172
173
# File 'lib/kiosk/indexer/adapter/thinking_sphinx_adapter.rb', line 168

def add_indexed_resource(resource)
  resource = resource.name if resource.is_a?(Class)

  @indexed_resources ||= []
  @indexed_resources << resource unless @indexed_resources.include?(resource)
end