method

use

rails latest stable - Class: ActiveRecord::IdentityMap

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

use()
public

No documentation available.

# File activerecord/lib/active_record/identity_map.rb, line 60
      def use
        old, self.enabled = enabled, true

        yield if block_given?
      ensure
        self.enabled = old
        clear
      end