method

set_context

rails latest stable - Class: ActiveSupport::EventContext

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

set_context(context_hash)
public

No documentation available.

# File activesupport/lib/active_support/event_reporter.rb, line 58
      def set_context(context_hash)
        new_context = self.context.dup
        context_hash.each { |key, value| new_context[key.to_sym] = value }

        Fiber[FIBER_KEY] = new_context.freeze
      end