File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Relation/scoping-i.ri
U:RDoc::AnyMethod[iI"scoping:ETI"#ActiveRecord::Relation#scoping;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I",Scope all queries to the current scope.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"*Comment.where(post_id: 1).scoping do
;TI" Comment.first
;TI" end
;TI"r# => SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 ORDER BY "comments"."id" ASC LIMIT 1
;T:@format0o;
; [I"PPlease check unscoped if you want to remove all previous scopes (including ;TI"8the default_scope) during the execution of a block.;T:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below00I": _scoping(self) { yield };T[ I"();T@FI"
Relation;TcRDoc::NormalClass00