module GlobalID::Locator
def locate_many_signed(sgids, options = {})
instances of returned classes to those including that module. If no classes or
classes to those classes or their subclasses. Passing one or more modules in limits
allowed to be located. Passing one or more classes limits instances of returned
* :only - A class, module or Array of classes and/or modules that are
Options:
the results to match the order in which the gids were passed.
This approach will efficiently call only one #find per model class, but still interpolate
that finder signature.
The SignedGlobalIDs are located using Model.find(array_of_ids), so the models must respond to
Takes an array of SignedGlobalIDs or strings that can be turned into a SignedGlobalIDs.
def locate_many_signed(sgids, options = {}) locate_many sgids.collect { |sgid| SignedGlobalID.parse(sgid, options.slice(:for)) }.compact, options end