plutonium 0.23.5 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/plutonium.css +1 -1
- data/config/initializers/rabl.rb +17 -0
- data/docs/modules/form.md +283 -423
- data/lib/plutonium/definition/nested_inputs.rb +0 -8
- data/lib/plutonium/resource/controller.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- metadata +2 -2
@@ -5,14 +5,6 @@ module Plutonium
|
|
5
5
|
|
6
6
|
included do
|
7
7
|
defineable_prop :nested_input
|
8
|
-
|
9
|
-
# def self.nested_input(name, with: nil, **)
|
10
|
-
# defined_nested_inputs[name] = {}
|
11
|
-
# end
|
12
|
-
|
13
|
-
# def nested_input(name, with: nil, **)
|
14
|
-
# instance_defined_nested_inputs[name] = {}
|
15
|
-
# end
|
16
8
|
end
|
17
9
|
end
|
18
10
|
end
|
@@ -73,7 +73,7 @@ module Plutonium
|
|
73
73
|
# Returns the submitted resource parameters
|
74
74
|
# @return [Hash] The submitted resource parameters
|
75
75
|
def submitted_resource_params
|
76
|
-
@submitted_resource_params ||= build_form(resource_class.new).extract_input(params, view_context:)[resource_param_key.to_sym]
|
76
|
+
@submitted_resource_params ||= build_form(resource_class.new).extract_input(params, view_context:)[resource_param_key.to_sym].compact
|
77
77
|
end
|
78
78
|
|
79
79
|
# Returns the resource parameters, including scoped and parent parameters
|
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.
|
4
|
+
version: 0.24.0
|
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-06-
|
11
|
+
date: 2025-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|