Sha256: 2a5b566ffe30830ced254fc60fd6151674703dce09632aa0aea1c81d5965261c

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

# ActsAsIndexed
# Copyright (c) 2007 - 2011 Douglas F Shearer.
# http://douglasfshearer.com
# Distributed under the MIT license as included with this plugin.

module ActsAsIndexed

  # Adds model class singleton methods.
  module SingletonMethods

    # Finds instances matching the terms passed in +query+.
    #
    # See ActsAsIndexed::ClassMethods#search_index.
    def find_with_index(query='', find_options = {}, options = {})
      search_index(query, find_options, options)
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_indexed-0.7.8 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.7 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.6 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.5 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.3 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.2 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.1 lib/acts_as_indexed/singleton_methods.rb
acts_as_indexed-0.7.0 lib/acts_as_indexed/singleton_methods.rb