module ActiveRecord::Encryption::Contexts

def context

Returns the current context. By default it will return the current context.
def context
  self.current_custom_context || self.default_context
end