Sha256: dac025b68160e22dc0335964d61740d97edf27cfc814cc40a2fff55858dddeac

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

class ShaCredential
  include Mongoid::Document
  include Mongoid::Encryptor

  field :email
  field :password
  field :options

  validates_presence_of :email, :password

  encrypts :password, :mode => :sha
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-encryptor-0.0.5 spec/models/sha_credential.rb