debian-mirror-gitlab/elasticsearch-rails/elasticsearch-model/spec/support/app/namespaced_book.rb
2021-03-05 16:19:46 +05:30

10 lines
198 B
Ruby

module MyNamespace
class Book < ActiveRecord::Base
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
document_type 'book'
mapping { indexes :title }
end
end