diff --git a/lib/global_id/identification.rb b/lib/global_id/identification.rb index 1cd4941..759250c 100644 --- a/lib/global_id/identification.rb +++ b/lib/global_id/identification.rb @@ -31,8 +31,8 @@ module Identification # # model = Person.new id: 1 # global_id = model.to_global_id - # global_id.modal_class # => Person - # global_id.modal_id # => "1" + # global_id.model_class # => Person + # global_id.model_id # => "1" # global_id.to_param # => "Z2lkOi8vYm9yZGZvbGlvL1BlcnNvbi8x" def to_global_id(options = {}) GlobalID.create(self, options) @@ -52,8 +52,8 @@ def to_gid_param(options = {}) # # model = Person.new id: 1 # signed_global_id = model.to_signed_global_id - # signed_global_id.modal_class # => Person - # signed_global_id.modal_id # => "1" + # signed_global_id.model_class # => Person + # signed_global_id.model_id # => "1" # signed_global_id.to_param # => "BAh7CEkiCGdpZAY6BkVUSSIiZ2..." # # ==== Expiration