Module: ActiveSupport::IsolatedExecutionState

Defined in:
lib/active_support/isolated_execution_state.rb

Overview

:nodoc:

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.isolation_levelObject

Returns the value of attribute isolation_level.



13
14
15
# File 'lib/active_support/isolated_execution_state.rb', line 13

def isolation_level
  @isolation_level
end

Instance Attribute Details

#active_support_execution_stateObject

Returns the value of attribute active_support_execution_state.



9
10
11
# File 'lib/active_support/isolated_execution_state.rb', line 9

def active_support_execution_state
  @active_support_execution_state
end

Class Method Details

.[](key) ⇒ Object



32
33
34
# File 'lib/active_support/isolated_execution_state.rb', line 32

def [](key)
  current[key]
end

.[]=(key, value) ⇒ Object



36
37
38
# File 'lib/active_support/isolated_execution_state.rb', line 36

def []=(key, value)
  current[key] = value
end

.clearObject



40
41
42
# File 'lib/active_support/isolated_execution_state.rb', line 40

def clear
  current.clear
end

.unique_idObject



28
29
30
# File 'lib/active_support/isolated_execution_state.rb', line 28

def unique_id
  self[:__id__] ||= Object.new
end