Sha256: 0e492de948f88312e013add918f3136e2e14ad8cb6cc9f5d1d138daeceab5b83
Contents?: true
Size: 213 Bytes
Versions: 2
Compression:
Stored size: 213 Bytes
Contents
class Credential include Mongoid::Document include Mongoid::Encryptor field :email field :password validates_presence_of :email, :password validates_format_of :email, :with => /^\A[^@]+@[^@]+\z/ end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-encryptor-0.0.5 | spec/models/credential.rb |
mongoid-encryptor-0.0.4 | spec/models/credential.rb |