Sha256: 0cfd11067687fef832871e8d5bf28b9d54614423b49aacdeacb0634bd34d6551
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
class Mongoid::Post include Mongoid::Document field :name has_many :comments, :class_name => 'Mongoid::Comment' belongs_to :category, :class_name => 'Mongoid::Category' embeds_many :users, :class_name => 'Mongoid::User' scope :preload_comments, lambda { includes(:comments) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bullet-5.7.0 | spec/models/mongoid/post.rb |
bullet-5.6.1 | spec/models/mongoid/post.rb |