sequel-privacy 0.2.0 → 0.2.1
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 +4 -4
- data/lib/sequel/plugins/privacy.rb +2 -2
- data/lib/sequel/privacy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04b5728dab12a15490535725e9458d1039e17049f47e839e724b5464b1e39ee5
|
|
4
|
+
data.tar.gz: ddb26ed4c76c15b672043d2ac32ff4573b791befc8c9f3b1d0405e0c4ddcd6ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b235a397d24fbfea16f557628554b5e64352a2872b54d9b51b36e81d13fe659be3b1a011e256626db7025dc7527b33e891866c116e4a1dbe4a03821209401c6
|
|
7
|
+
data.tar.gz: 105bb81dc55bb0970a224682c7ab30117758e882db8acac968802da1ed0fa06bd29145350d9de196dda2f6b5d0f81b7c58433e1107317ab8f4b7d297a5ee2c53
|
|
@@ -123,7 +123,7 @@ module Sequel
|
|
|
123
123
|
# can :remove, AllowGroupAdmin, AllowSelfRemove
|
|
124
124
|
# can :remove_all, AllowGroupAdmin
|
|
125
125
|
# end
|
|
126
|
-
sig { params(name: Symbol, block: T.proc.void).void }
|
|
126
|
+
sig { params(name: Symbol, block: T.proc.bind(AssociationPrivacyDSL).void).void }
|
|
127
127
|
def association(name, &block)
|
|
128
128
|
resolver = ->(policies) { resolve_policies(policies) }
|
|
129
129
|
dsl = AssociationPrivacyDSL.new(@model_class, name, resolver)
|
|
@@ -260,7 +260,7 @@ module Sequel
|
|
|
260
260
|
# can :edit, P::AllowSelf, P::AllowAdmins
|
|
261
261
|
# field :email, P::AllowSelf
|
|
262
262
|
# end
|
|
263
|
-
sig { params(block: T.proc.void).void }
|
|
263
|
+
sig { params(block: T.proc.bind(PrivacyDSL).void).void }
|
|
264
264
|
def privacy(&block)
|
|
265
265
|
if privacy_finalized?
|
|
266
266
|
Kernel.raise Sequel::Privacy::PrivacyAlreadyFinalizedError, "Privacy already finalized for #{self}"
|