rbac_rls 0.1.5.3 → 0.1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67d54a4cb56723fe2c9d8b6c643f96f1e97a3fb5369a53f14bf7bff1d8fc99d0
|
|
4
|
+
data.tar.gz: 1b57b01764013069df567eadd0d0202bbe77d564d0a144d11bb37f58f55325da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9b2ba201c92ff66b14c781eb8e773836e952dff4892325da7d44c088b770e80de044b2ced46590bd094380cffcf9756a2f82eb9933d8d4822b699476b77ef62
|
|
7
|
+
data.tar.gz: fdcb67e10b08fae1ebd49d5b1fa65f4191ecaa015c229c4571e50288769509ca4daa81756e9710978de8c5610f687b0cd60bed88c894b0b0f688b7031ef1dc56
|
|
@@ -2,7 +2,7 @@ module ConnectionRlsUserConcern
|
|
|
2
2
|
extend ActiveSupport::Concern
|
|
3
3
|
|
|
4
4
|
included do
|
|
5
|
-
|
|
5
|
+
around_action :with_user_id
|
|
6
6
|
rescue_from ::PG::InsufficientPrivilege, with: :rls_error
|
|
7
7
|
|
|
8
8
|
def with_user_id
|
|
@@ -28,4 +28,4 @@ module ConnectionRlsUserConcern
|
|
|
28
28
|
|
|
29
29
|
class_methods do
|
|
30
30
|
end
|
|
31
|
-
end
|
|
31
|
+
end
|
data/lib/rbac_rls/version.rb
CHANGED