Module: ElasticMapper::Search

Defined in:
lib/elastic_mapper/search.rb

Overview

Add search to an ActiveRecord model. The id field is used to load the underlying models from the DB.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/elastic_mapper/search.rb', line 6

def self.included(base)
  base.extend(ClassMethods)
end