instance method
with_context
Ruby on Rails 7.1.6
Since v7.0.10Signature
with_context(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File activerecord/lib/active_record/encryption/scheme.rb, line 65
def with_context(&block)
if @context_properties.present?
ActiveRecord::Encryption.with_encryption_context(**@context_properties, &block)
else
block.call
end
end
Defined in activerecord/lib/active_record/encryption/scheme.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Scheme