Methods

DataMapper::Is::Searchable::ClassMethods

Public Instance Methods

search(search_options = {}, options = {}) click to toggle source
# File lib/dm-is-searchable/is/searchable.rb, line 30
def search(search_options = {}, options = {})
  docs = repository(@search_repository) { self.all(search_options) }
  ids = docs.collect { |doc| doc[:id] }
  self.all(options.merge(key.first => ids))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.