Sha256: 171293edde0ba25da61bdedb9c75db3ee5451c770dae42d9946fc31acb49a5c3
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
class Post include Mongoid::Document include Lolita::Configuration field :title, :type => String field :body, :type => String field :is_public, :type => Boolean field :price, :type => BigDecimal references_many :comments,:class_name=>"Comment" referenced_in :profile validates_presence_of :title lolita end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lolita-3.1.0 | spec/rails_app/app/mongoid/post.rb |