credential_authorization 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50754e789bb77e7b0295b2e7ce3b79892d9ff27df65114661b8a4fed4d78b698
4
- data.tar.gz: 8311803d62c38ce7e07680f6847a09628ede5e65350c297d15490e3046514141
3
+ metadata.gz: e611cf138160c85aa3d68f36982817acea227a81b02773043e81c5d8db940283
4
+ data.tar.gz: 386e60fad08733a2350d61a431db40b78dc2bf622ab6a0dcf21799c34301b114
5
5
  SHA512:
6
- metadata.gz: 3d6524a1b85e00e2903a35b1880e4db6d72298ce1f63d82c80545a84c028ba0c02c6c93c63aa55c4853cb900af022df2e3edbdfef1a9de2b4b697aa968850385
7
- data.tar.gz: bcb8507249c8c71f275e02e56dbcf7e6d3648928b9e428962026811f7c10f3c88f5a4b9a6f3577f296ed72b00e8a5c5e04a7d52fcff9309e278e87f2aa848d2e
6
+ metadata.gz: d4e5ef6a4c7a2d955e675576b2f993b66ce3523987ca8bf10ffd800309812de9cff3b44bfac6cb64bcc3d768d510e1a1452db821bf9820d7b3aa6a1ad6515910
7
+ data.tar.gz: 4aa4cb342c75afb0b1f55aae7e32a42679b93cec653e76d5787d85f480ad0f4ee363badf64078ad86928ef72e31babb57eeeadd563e794f49a19d3f793c6b7aa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CredentialAuthorization
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -36,6 +36,10 @@ module CredentialAuthorization
36
36
  true
37
37
  end
38
38
 
39
+ def self.build_permission_key(record:, permission:)
40
+ "#{record.class.name.downcase}.#{record.id}.#{permission}"
41
+ end
42
+
39
43
  private
40
44
 
41
45
  def self.find_permission(permission)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credential_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JoelGamer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: