Sha256: d0bf28ad4d51ece60b10b2d3763daea068c024539911cfcfd1d8ac7f1632b34f
Contents?: true
Size: 315 Bytes
Versions: 4
Compression:
Stored size: 315 Bytes
Contents
class Post include Mongoid::Document include Mongoid::Timestamps field :title, type: String field :body, type: String PostsSearcher.source(self).title = :title PostsSearcher.source(self).body = lambda do |model| model.body.gsub(/<.*?>/, "") end PostsSearcher.source(self).updated_at = true end
Version data entries
4 entries across 4 versions & 1 rubygems