Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fix typo in method names in code example #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading