Sha256: 62fb05d2ecde35ea5063ca13ddf5febc889bed67f4b785f28204e64c982721fc
Contents?: true
Size: 411 Bytes
Versions: 6
Compression:
Stored size: 411 Bytes
Contents
require 'mongoid' require 'byebug' require_relative '../lib/mongoid/kms' Mongoid.load!("spec/mongoid.yml", :test) class MyClass include Mongoid::Document include Mongoid::Kms secure_field :secure, type: String, context: lambda { |d| {name: d.name} } field :unsecure def name @name ||= "me-#{Time.now.to_i}" end end Mongoid::Kms.configure({region: "us-east-1", key: ENV['AWS_KMS_KEY_ID']})
Version data entries
6 entries across 6 versions & 1 rubygems