Skip to content

Commit

Permalink
[docs] Fix typo in method names in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored Aug 20, 2024
1 parent 4df3ad2 commit 7dea661
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/global_id/identification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 7dea661

Please sign in to comment.