method
with_context
rails latest stable - Class:
ActiveRecord::Encryption::Scheme
with_context(&block)public
No documentation available.
# 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