method

current_scope_restoring_block

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
current_scope_restoring_block(&block) private

No documentation

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

Hide source
# File activerecord/lib/active_record/relation.rb, line 901
      def current_scope_restoring_block(&block)
        current_scope = klass.current_scope(true)
        -> record do
          klass.current_scope = current_scope
          yield record if block_given?
        end
      end
Register or log in to add new notes.