Sha256: 3c5266bd2e15fec91ef791fe7bbec481497ee4cee6aecafaa6de1f53f39020e7
Contents?: true
Size: 358 Bytes
Versions: 13
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true module Influxer module Scoping # Clone of current_scope methods for older versions of ActiveModel module CurrentScope def current_scope Thread.current["#{self}_current_scope"] end def current_scope=(scope) Thread.current["#{self}_current_scope"] = scope end end end end
Version data entries
13 entries across 13 versions & 1 rubygems