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

11 lines
198 B
Ruby
Raw Normal View History

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