class ActiveModel::GlobalLocator

def locate(gid)

Takes either a GlobalID or a string that can be turned into a GlobalID
def locate(gid)
  if gid.is_a? GlobalID
    gid.model_class.find(gid.model_id)
  elsif properly_formatted_gid?(gid)
    locate GlobalID.new(gid)
  end
end