Sha256: c8ad0bf6eb74267bfb6cfd2cbb91f6b9d6ee84ec2fe09b0f8be3e86ef2448699

Contents?: true

Size: 198 Bytes

Versions: 3

Compression:

Stored size: 198 Bytes

Contents

module MyNamespace
  class Book < ActiveRecord::Base
    include Elasticsearch::Model
    include Elasticsearch::Model::Callbacks

    document_type 'book'

    mapping { indexes :title }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elasticsearch-model-6.1.2 spec/support/app/namespaced_book.rb
elasticsearch-model-6.1.1 spec/support/app/namespaced_book.rb
elasticsearch-model-6.1.0 spec/support/app/namespaced_book.rb