Module: Mongoid::EncryptedFields

Extended by:
Logging
Defined in:
lib/mongoid-encrypted-fields.rb,
lib/mongoid-encrypted-fields/logging.rb,
lib/mongoid-encrypted-fields/version.rb

Defined Under Namespace

Modules: Logging

Constant Summary collapse

VERSION =
'1.3.6'

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Logging

default_logger, logger, logger=, rails_logger

Class Attribute Details

.cipherObject

Set cipher used for all field encryption/decryption



15
16
17
# File 'lib/mongoid-encrypted-fields.rb', line 15

def cipher
  @cipher
end

Class Method Details

.mongoid_major_versionObject



17
18
19
# File 'lib/mongoid-encrypted-fields.rb', line 17

def mongoid_major_version
  @mongoid_major_version ||= ::Mongoid::VERSION[/([^\.]+)/].to_i
end