class GlobalID::Locator::BaseLocator

def locate(gid, options = {})

def locate(gid, options = {})
  return unless model_id_is_valid?(gid)
  model_class = gid.model_class
  model_class = model_class.includes(options[:includes]) if options[:includes]
  model_class.find gid.model_id
end