Sha256: ae45280cefeba04c4c73510736a967b4ab70c6cec1bf59c277c626b3827c254f
Contents?: true
Size: 291 Bytes
Versions: 5
Compression:
Stored size: 291 Bytes
Contents
class Post include Mongoid::Document field :name, type: String field :content, type: String field :my_object_id, type: BSON::ObjectId include Mongoid::Elasticsearch elasticsearch! def as_indexed_json {name: name, content: content, my_object_id: my_object_id} end end
Version data entries
5 entries across 5 versions & 1 rubygems