module Influxer::Scoping::CurrentScope

Clone of current_scope methods for older versions of ActiveModel

Public Instance Methods

current_scope() click to toggle source
# File lib/influxer/metrics/scoping/old_current_scope.rb, line 7
def current_scope
  Thread.current["#{self}_current_scope"]
end
current_scope=(scope) click to toggle source
# File lib/influxer/metrics/scoping/old_current_scope.rb, line 11
def current_scope=(scope)
  Thread.current["#{self}_current_scope"] = scope
end