Skip to Content Skip to Search

class ActiveSupport::ExecutionContext::Record

Attributes

[R] current_attributes_instances
[R] store

Public class methods

Source code GitHub
# File activesupport/lib/active_support/execution_context.rb, line 8
def initialize
  @store = {}
  @current_attributes_instances = {}
  @stack = []
end

Public instance methods

Source code GitHub
# File activesupport/lib/active_support/execution_context.rb, line 21
def pop
  @current_attributes_instances = @stack.pop
  @store = @stack.pop
  self
end
Source code GitHub
# File activesupport/lib/active_support/execution_context.rb, line 14
def push
  @stack << @store << @current_attributes_instances
  @store = {}
  @current_attributes_instances = {}
  self
end

Definition files