instance method
context
Ruby on Rails 7.0.10
Since v7.0.10Signature
context()
Returns the current context. By default it will return the current context.
Source
# File activerecord/lib/active_record/encryption/contexts.rb, line 62
def context
self.current_custom_context || self.default_context
end
Defined in activerecord/lib/active_record/encryption/contexts.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Contexts