bullet_train-super_load_and_authorize_resource 1.6.38 → 1.7.1
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: 5de34aab4512ea6ec35a5940b2a98edb187acb901216ed6eb7c2506190f90b17
|
4
|
+
data.tar.gz: 459a150f1b2758b718ac6dbb24d00930ae95bba84cb6037e2af7723be161a666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d7738a4598eb427dde9de599ca14b8e0d241f8b5fbca85cadc3ef2010c6730f97fef753c35079ed0a1e5ad0305d55ff025e75b812841ed187a64f19f8ab483c
|
7
|
+
data.tar.gz: 1ad23162bd14347c0303c61a13936acd721f110150bf7ab90eaca3ce41371a19ecb6e542ef6f3b3cab370ad8c7ddaf03bbdf5a327c2cd9c13d9b80767d56efc3
|
@@ -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.1
|
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
|