module Tire::Model::Search::ClassMethods

Public Instance Methods

index() click to toggle source

Returns a Tire::Index instance for this model.

Example usage: `Article.index.refresh`.

# File lib/tire/model/search.rb, line 104
def index
  name = index_name.respond_to?(:to_proc) ? klass.instance_eval(&index_name) : index_name
  @index = Index.new(name)
end