debian-mirror-gitlab/elasticsearch-rails/elasticsearch-model/spec/support/app/namespaced_book.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
198 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
module MyNamespace
class Book < ActiveRecord::Base
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
document_type 'book'
mapping { indexes :title }
end
end