plutonium 0.19.4 → 0.19.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plutonium/resource/controller.rb +1 -5
- data/lib/plutonium/ui/form/base.rb +1 -1
- data/lib/plutonium/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: feee9c606abae32c2ebd4f32a59fffa47372d45c43791b1a74fe23d131651e2f
|
4
|
+
data.tar.gz: 18dc4877bc6139941cf369738266e09211174e6c06b134cb059d261bb97c1da8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6739a45198d4e71b870dbdede7c7ab3760f1ed4d83500a0931a39a0331cf362aa700acdf9a4f99ca3f01aa8b849a1ac61c3ac2b4dd4fb1343c1a817d2b989ea
|
7
|
+
data.tar.gz: aabc0815e110094801b02231b25e6413f021031b7bd835dce5cc41695f3a74e322be3ece16c0ca79582bbf4e15137d8317e1a89396dd3937dad1173b76d4edfb
|
@@ -128,11 +128,7 @@ module Plutonium
|
|
128
128
|
@current_parent ||= begin
|
129
129
|
parent_route_key = parent_route_param.to_s.gsub(/_id$/, "").to_sym
|
130
130
|
parent_class = current_engine.resource_register.route_key_lookup[parent_route_key]
|
131
|
-
parent_scope =
|
132
|
-
parent_class.associated_with(current_scoped_entity)
|
133
|
-
else
|
134
|
-
parent_class.all
|
135
|
-
end
|
131
|
+
parent_scope = authorized_scope(parent_class.all, context: {entity_scope: entity_scope_for_authorize})
|
136
132
|
parent_scope = parent_scope.from_path_param(params[parent_route_param])
|
137
133
|
current_parent = parent_scope.first!
|
138
134
|
authorize! current_parent, to: :read?
|
@@ -16,7 +16,7 @@ module Plutonium
|
|
16
16
|
|
17
17
|
def slim_select_tag(**attributes, &)
|
18
18
|
attributes[:data_controller] = tokens(attributes[:data_controller], "slim-select")
|
19
|
-
select_tag(**attributes, class!: "", &)
|
19
|
+
select_tag(**attributes, required: false, class!: "", &)
|
20
20
|
end
|
21
21
|
|
22
22
|
def flatpickr_tag(**, &)
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|