Module: ActiveRecord::Encryption::Contexts
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | activerecord/lib/active_record/encryption/contexts.rb |
Overview
::ActiveRecord::Encryption
uses encryption contexts to configure the different entities used to encrypt/decrypt at a given moment in time.
By default, the library uses a default encryption context. This is the Context
that gets configured initially via config.active_record.encryption
options. Library users can define nested encryption contexts when running blocks of code.
See Context.
Class Method Summary
::ActiveSupport::Concern
- Extended
class_methods | Define class methods from given block. |
included | Evaluate given block in context of base class, so that you can write class macros here. |
prepended | Evaluate given block in context of base class, so that you can write class macros here. |
append_features, prepend_features |
DSL Calls
included
[ GitHub ]16 17 18 19
# File 'activerecord/lib/active_record/encryption/contexts.rb', line 16
included do mattr_accessor :default_context, default: Context.new thread_mattr_accessor :custom_contexts end