debian-mirror-gitlab/elasticsearch-model/spec/support/app/namespaced_book.rb
2020-03-09 13:42:32 +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