class GlobalID::Locator::UnscopedLocator

def find_records(model_class, ids, options)

def find_records(model_class, ids, options)
  unscoped(model_class) { super }
end

def locate(gid, options = {})

def locate(gid, options = {})
  unscoped(gid.model_class) { super }
end

def unscoped(model_class)

def unscoped(model_class)
  if model_class.respond_to?(:unscoped)
    model_class.unscoped { yield }
  else
    yield
  end
end