action_policy 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/action_policy/behaviour.rb +2 -2
- data/lib/action_policy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 611389adf65ee131b0b5b272885fe0ba6a7066330a1e9b97d7f0b9cb8dd47530
|
4
|
+
data.tar.gz: f2f29bf49216ef6406b408935250fc845619d14657d8956d7a20a6344b8a3032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86baaf070430319da764d5287542f418a32f9b28870518bddeb6c25ad3875ea14482993c2d0d185750e1dea36ad45263182f285f893b9a44a95f29dcd734f653
|
7
|
+
data.tar.gz: 6fbb1736b962bd2b80d24ffe2ada43ced3bf4324f5d4790d6ca39f7f1c5a654bffcde93caca846c6ce49ce5a1d68a299fd050edda595cdc114bd552de83ac1d5
|
data/CHANGELOG.md
CHANGED
@@ -61,7 +61,7 @@ module ActionPolicy
|
|
61
61
|
@_authorization_context ||= build_authorization_context
|
62
62
|
end
|
63
63
|
|
64
|
-
def build_authorization_context
|
64
|
+
private def build_authorization_context
|
65
65
|
self.class.authorization_targets
|
66
66
|
.each_with_object({}) do |(key, meth), obj|
|
67
67
|
obj[key] = send(meth)
|
@@ -75,7 +75,7 @@ module ActionPolicy
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def lookup_authorization_policy(record, with: nil, **options) # :nodoc:
|
78
|
-
if
|
78
|
+
if :__undef__ == record # rubocop:disable Style/YodaCondition
|
79
79
|
record =
|
80
80
|
if with
|
81
81
|
implicit_authorization_target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-next-core
|