Sha256: 771408e48a17644bb0a61b506954f531761e34bc91249e5c4657297c3d2e39f3

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 Bytes

Contents

class Post
  include Mongoid::Document
  include Lolita::Configuration
  field :title, :type => String
  field :body, :type => String
  references_many :comments,:class_name=>"Comment"
  referenced_in :profile
  validates_presence_of :title
  lolita
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-3.0.7 spec/rails_app/app/mongoid/post.rb
lolita-3.0.6 spec/rails_app/app/mongoid/post.rb
lolita-3.0.5 spec/rails_app/app/mongoid/post.rb