aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20201006140511_create_resources.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-06 00:24:41 +0200
committerhellekin <hellekin@cepheide.org>2020-10-06 00:24:41 +0200
commitf0a00d02d30509b3b56026e9e4d119bce3a82d99 (patch)
tree46c8f20137696e966bddf4bb4947d14aa80c0a9d /db/migrate/20201006140511_create_resources.rb
parent53fee71ecd3a3202b847b3e0082e4ee0ca770ca6 (diff)
downloadincommon-map-f0a00d02d30509b3b56026e9e4d119bce3a82d99.tar.gz
Add instance methods
The Agency class can `grant` and `revoke` roles for a given Agent and User. Since it is primarily used in context of both an Agent and User, we add convenience methods so that one can grant or revoke a role simply by passing the desired role to the instance.
Diffstat (limited to 'db/migrate/20201006140511_create_resources.rb')
0 files changed, 0 insertions, 0 deletions