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: 4fdcaf3fa2e326dfc5c0577a33977205ace2d9c4a321444df4a5f9c546f9d2d4
4
- data.tar.gz: 1a421c5a740aef98ccb65864b63d14bda11bba18b06dfee169a2f030190a7752
3
+ metadata.gz: ea892267d86b2e8fb0f8fd243560e1708e03a4e83b66aeed3fc0198044a26152
4
+ data.tar.gz: b7d6d0d6b179f407f4dd20a4f68ccdaff29dc0e355154a2634d9cb151573fab3
5
5
  SHA512:
6
- metadata.gz: 94a9299fb7fb0eb9282faeaa1ae768eb5cccf80b7a600b81d6c49cb1c1eb028d6cc1fc2e45c40ea1690652ee26cea124d1047ff7bd35f3faee37a4c9b4892ec5
7
- data.tar.gz: 2a9e5f9feb9f54db55b520e9e76a45ae6e06e1ba588fbe12894daf360e7a467d6a3eed66a41fefa3752fc38b190c5b8eee935fbf7ba0a04f02bafd69dd5aaa05
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
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperLoadAndAuthorizeResource
3
- VERSION = "1.6.37"
3
+ VERSION = "1.7.0"
4
4
  end
5
5
  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.6.37
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 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan