bullet_train-super_load_and_authorize_resource 1.6.37 → 1.7.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea892267d86b2e8fb0f8fd243560e1708e03a4e83b66aeed3fc0198044a26152
|
4
|
+
data.tar.gz: b7d6d0d6b179f407f4dd20a4f68ccdaff29dc0e355154a2634d9cb151573fab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78910118d037f94ebe808c3aafba948a8c853d2dbd8e053ee061dd074b94851efc79e39bf5370bdd133cfb55d8cef1b4efa09f4d9852522286d2f85619505562
|
7
|
+
data.tar.gz: b289af76231f6b2a725d7858e53a3448549e25f6a53dba35bbc8d565ae42bf2a603b5e62f955c2026e307193e03f0f4d1a19d5d5fe6c571489ae16fc35c67d2e
|
@@ -96,7 +96,7 @@ module BulletTrain::LoadsAndAuthorizesResource
|
|
96
96
|
|
97
97
|
# x. this and the thing below it are only here to make a sortable concern possible.
|
98
98
|
prepend_before_action only: member_actions do
|
99
|
-
@child_object = instance_variable_get("@#{model}")
|
99
|
+
@child_object = instance_variable_get(:"@#{model}")
|
100
100
|
@parent_object = instance_variable_get instance_variable_name
|
101
101
|
end
|
102
102
|
|
@@ -106,7 +106,7 @@ module BulletTrain::LoadsAndAuthorizesResource
|
|
106
106
|
end
|
107
107
|
|
108
108
|
prepend_before_action only: member_actions do
|
109
|
-
model_instance = instance_variable_get("@#{model}")
|
109
|
+
model_instance = instance_variable_get(:"@#{model}")
|
110
110
|
if model_instance && !instance_variable_defined?(instance_variable_name)
|
111
111
|
parent = through_as_symbols.lazy.filter_map { model_instance.public_send(_1) }.first
|
112
112
|
instance_variable_set instance_variable_name, parent
|
@@ -115,9 +115,9 @@ module BulletTrain::LoadsAndAuthorizesResource
|
|
115
115
|
|
116
116
|
if options[:polymorphic]
|
117
117
|
prepend_before_action only: collection_actions do
|
118
|
-
unless instance_variable_defined?("@#{options[:polymorphic]}")
|
119
|
-
parent = through_as_symbols.lazy.filter_map { instance_variable_get "@#{_1}" }.first
|
120
|
-
instance_variable_set "@#{options[:polymorphic]}", parent
|
118
|
+
unless instance_variable_defined?(:"@#{options[:polymorphic]}")
|
119
|
+
parent = through_as_symbols.lazy.filter_map { instance_variable_get :"@#{_1}" }.first
|
120
|
+
instance_variable_set :"@#{options[:polymorphic]}", parent
|
121
121
|
end
|
122
122
|
end
|
123
123
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-super_load_and_authorize_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|