method

clear_instance_variables_between_requests

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Functional
clear_instance_variables_between_requests() public

No documentation

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

Hide source
# File actionpack/lib/action_controller/metal/testing.rb, line 7
      def clear_instance_variables_between_requests
        if defined?(@_ivars)
          new_ivars = instance_variables - @_ivars
          new_ivars.each { |ivar| remove_instance_variable(ivar) }
        end

        @_ivars = instance_variables
      end
Register or log in to add new notes.