Module: DataMapper::Is::Searchable::ClassMethods

### Home Classes Methods

### In Files

- lib/dm-is-searchable/is/searchable.rb

### Methods

- #search

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Is
- DataMapper::Is::Searchable
- DataMapper::Is::Searchable::ClassMethods
- DataMapper::Model

No matching classes.

# 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.