module GlobalID::Locator
def locate_many(gids, options = {})
- See: https://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations -
def locate_many(gids, options = {}) if (allowed_gids = parse_allowed(gids, options[:only])).any? locator = locator_for(allowed_gids.first) locator.locate_many(allowed_gids, options) else [] end end