Sha256: 7aa94763011d54edc1780eb9584b1feaa92fffedb76da9bd4d951cae474d2f3d

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

class Post
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Signature
  
  field :title
  field :body
  field :published, :type => Boolean, :default => false
  
  referenced_in :users
  embeds_many :comments  
  
  sign_document :include => [:user, :title, :body], :save_signature => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_signature-0.0.4 spec/models/post.rb