./devel/ruby-globalid, Reference models by URI

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2018Q3, Version: 0.4.1, Package name: ruby24-globalid-0.4.1, Maintainer: minskim

A Global ID is an app wide URI that uniquely identifies a model
instance. This is helpful when you need a single identifier to
reference different classes of objects. One example is job
scheduling. We need to reference a model object rather than serialize
the object itself. We can pass a Global ID that can be used to locate
the model when it's time to perform the job. The job scheduler doesn't
need to know the details of model naming and IDs, just that it has a
global identifier that references a model. Another example is a
drop-down list of options, consisting of both Users and
Groups. Normally we'd need to come up with our own ad hoc scheme to
reference them. With Global IDs, we have a universal identifier that
works for objects of both classes.


Required to run:
[lang/ruby24-base] [devel/ruby-activesupport42]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 79c51c607689deb06fed616ceaba4ddd7608f277
RMD160: 7275ae8533b8e06829f440e8522fe58d773df2b2
Filesize: 12.5 KB

Version history: (Expand)