module GlobalID::Identification
def to_global_id(options = {})
global_id.modal_id # => "1"
global_id.modal_class # => Person
global_id = model.to_global_id
model = Person.new id: 1
Returns the Global ID of the model.
def to_global_id(options = {}) GlobalID.create(self, options) end