instance method _deprecated_scope_block

Ruby on Rails 6.0.6

Since v6.0.6 Last seen in v6.0.6 Private — implementation detail, not part of the public API

Signature

_deprecated_scope_block(name, &block)

No documentation comment.

Parameters

name req
block block
Source
# File activerecord/lib/active_record/relation.rb, line 778
      def _deprecated_scope_block(name, &block)
        -> record do
          klass.current_scope = _deprecated_spawn(name)
          yield record if block_given?
        end
      end

Defined in activerecord/lib/active_record/relation.rb line 778 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Relation

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close