method

isolation_level=

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: IsolatedExecutionState
isolation_level=(level) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/isolated_execution_state.rb, line 15
      def isolation_level=(level)
        unless %(thread fiber).include?(level)
          raise ArgumentError, "isolation_level must be `:thread` or `:fiber`, got: `#{level.inspect}`"
        end

        if level != isolation_level
          clear
          singleton_class.alias_method(:current, "current_#{level}")
          singleton_class.send(:private, :current)
          @isolation_level = level
        end
      end
Register or log in to add new notes.