We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When multiple apps collaborate and reference each others' Global IDs, they'll use different means to locate the URI references.
For example, locate an Active Resource class:
GlobalID::Locator.use :foo do |gid| FooRemote.const_get(gid.model_name).find(gid.model_id) end GlobalID::Locator.locate 'gid://foo/Account/1234' # => FooRemote::Account id=1234
Or locate the referenced model in a search index:
GlobalID::Locator.use :bar, BarLocator.new class BarLocator def locate(gid) @search_client.search name: gid.model_name, id: gid.model_id end end GlobalID::Locator.locate 'gid://bar/Account/1234' # => BarResult name=Account id=1234
The text was updated successfully, but these errors were encountered:
Implemented by @kaspth ❤️
Sorry, something went wrong.
Nice! Thanks, @jeremy ❤️
No branches or pull requests
When multiple apps collaborate and reference each others' Global IDs, they'll use different means to locate the URI references.
For example, locate an Active Resource class:
Or locate the referenced model in a search index:
The text was updated successfully, but these errors were encountered: