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

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