HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/doc/globalid-0.5.2/ri/GlobalID/Locator/locate_many-c.ri
U:RDoc::AnyMethod[iI"locate_many:ETI"#GlobalID::Locator::locate_many;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"QTakes an array of GlobalIDs or strings that can be turned into a GlobalIDs. ;TI"NAll GlobalIDs must belong to the same app, as they will be located using ;TI"3the same locator using its locate_many method.;To:RDoc::Markup::BlankLineo;
;	[I"UBy default the GlobalIDs will be located using Model.find(array_of_ids), so the ;TI"2models must respond to that finder signature.;T@o;
;	[I"gThis approach will efficiently call only one #find (or #where(id: id), when using ignore_missing) ;TI"iper model class, but still interpolate the results to match the order in which the gids were passed.;T@o;
;	[I"
Options:;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;	[o;
;	[
I"R<tt>:only</tt> - A class, module or Array of classes and/or modules that are ;TI"Vallowed to be located.  Passing one or more classes limits instances of returned ;TI"Zclasses to those classes or their subclasses.  Passing one or more modules in limits ;TI"Uinstances of returned classes to those including that module.  If no classes or ;TI"&modules match, +nil+ is returned.;To;;0;	[o;
;	[	I"c<tt>:ignore_missing</tt> - By default, locate_many will call #find on the model to locate the ;TI"gids extracted from the GIDs. In Active Record (and other data stores following the same pattern), ;TI"c#find will raise an exception if a named ID can't be found. When you set this option to true, ;TI"Rwe will use #where(id: ids) instead, which does not raise on missing records.;T:
@fileI"lib/global_id/locator.rb;T:0@omit_headings_from_table_of_contents_below000[I"(gids, options = {});T@/FI"Locator;TcRDoc::NormalModule00