Sha256: b408bc3fcf25731a431626c09391df78ff87a7cc80298d5d2139ad0eaf5bab86
Contents?: true
Size: 347 Bytes
Versions: 3
Compression:
Stored size: 347 Bytes
Contents
class AsymmetricCredential include Mongoid::Document include Mongoid::Encryptor field :email field :password validates_presence_of :email, :password encrypts :password, :mode => :asymmetric, :private_key_file => File.dirname(__FILE__) + '/../keys/private', :public_key_file => File.dirname(__FILE__) + '/../keys/public' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-encryptor-0.0.5 | spec/models/asymmetric_credential.rb |
mongoid-encryptor-0.0.4 | spec/models/asymmetric_credential.rb |
mongoid-encryptor-0.0.1 | spec/models/asymmetric_credential.rb |