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 APISignature
_deprecated_scope_block(name, &block)
No documentation comment.
Parameters
-
namereq -
blockblock
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