Module: Mongo::Crypt
Class Method Summary
- .reset_autoload Internal use only mod_func Internal use only
- .validate_ffi! mod_func
Class Method Details
.reset_autoload (mod_func)
This method is for internal use only.
[ GitHub ]
.validate_ffi! (mod_func)
[ GitHub ]# File 'lib/mongo/crypt.rb', line 40
def validate_ffi! return if defined?(FFI) require 'ffi' rescue LoadError => e raise Error::UnmetDependency, 'Cannot enable encryption because the ffi gem ' \ "has not been installed. Add \"gem 'ffi'\" to your Gemfile and run " \ "\"bundle install\" to install the gem. (#{e.class}: #{e})" end