Sha256: 3a5175af0abf7bbe8ed68a86bd96592860e38e8e077b7a54aee4ce00fcdfbfc4
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
class Document include Mongoid::Document field :string, type: Mongoid::EncryptedString end class DocumentWithImplicitDefault include Mongoid::Document field :string, type: Mongoid::EncryptedString, default: 'foo' end class DocumentWithExplicitDefault include Mongoid::Document field :string, type: Mongoid::EncryptedString, default: ->{ Mongoid::EncryptedString.new('foo') } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-encrypted_string-0.1.0 | spec/support/document.rb |
mongoid-encrypted_string-0.0.1 | spec/support/document.rb |