plutonium 0.15.0.pre.rc3 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/components/form/form_builder.rb +3 -3
- data/app/views/components/table/table_component.rb +1 -1
- data/lib/generators/pu/lib/plutonium_generators/installer.rb +1 -1
- data/lib/plutonium/core/actions/basic_action.rb +2 -2
- data/lib/plutonium/core/actions/interactive_action.rb +2 -2
- data/lib/plutonium/core/controller.rb +1 -1
- data/lib/plutonium/core/fields/inputs/attachment_input.rb +2 -2
- data/lib/plutonium/core/fields/inputs/nested_input.rb +2 -2
- data/lib/plutonium/routing/route_set_extensions.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a79da147b298beabc3cfbdeaca6b9fc9d933b28eeca7dc305ded679f8ad21319
|
4
|
+
data.tar.gz: 99b1d2b9c16aa6e097c2f50dfa5eee01768999c046d6a463b061608498c55523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe1f5da07fbe90389c8dad3006084952649a82cfca662a177b51b612d84479ef52a8ad91b9c0df60a450b597933e560e12d0ddef85a63ce1ba6e7be3320e431
|
7
|
+
data.tar.gz: d372628ad0e5a0d79e90ec04d5bac2fccbb3ce43426494f49c0e1f64f1d002cdae414f7238718f654c11eb73b80debe298f147ae748877216b03f595513f5c25
|
@@ -2,7 +2,7 @@ require "simple_form"
|
|
2
2
|
|
3
3
|
module PlutoniumUi
|
4
4
|
class FormBuilder < SimpleForm::FormBuilder
|
5
|
-
def input(attribute_name, options = {}, &
|
5
|
+
def input(attribute_name, options = {}, &)
|
6
6
|
label_class = options.dig(:label_html, :class)
|
7
7
|
if object&.errors&.[](attribute_name).present?
|
8
8
|
# Don't show the hint
|
@@ -19,13 +19,13 @@ module PlutoniumUi
|
|
19
19
|
options[:label_html] ||= {}
|
20
20
|
options[:label_html][:class] = label_class
|
21
21
|
|
22
|
-
super
|
22
|
+
super
|
23
23
|
end
|
24
24
|
|
25
25
|
def hint(...)
|
26
26
|
return if object.errors[attribute_name].present?
|
27
27
|
|
28
|
-
super
|
28
|
+
super
|
29
29
|
end
|
30
30
|
|
31
31
|
def return_to(url)
|
@@ -8,12 +8,12 @@ module Plutonium
|
|
8
8
|
|
9
9
|
attr_reader :interaction, :inline, :inputs
|
10
10
|
|
11
|
-
def initialize(name,
|
11
|
+
def initialize(name, *, interaction:, **kwargs)
|
12
12
|
set_interaction interaction
|
13
13
|
|
14
14
|
kwargs[:route_options] ||= build_route_options name
|
15
15
|
kwargs.reverse_merge! action_options
|
16
|
-
super(name,
|
16
|
+
super(name, *, **kwargs)
|
17
17
|
end
|
18
18
|
|
19
19
|
def confirmation
|
@@ -5,9 +5,9 @@ module Plutonium
|
|
5
5
|
class AttachmentInput < SimpleFormInput
|
6
6
|
attr_reader :reflection
|
7
7
|
|
8
|
-
def initialize(name, reflection:, **
|
8
|
+
def initialize(name, reflection:, **)
|
9
9
|
@reflection = reflection
|
10
|
-
super(name, **
|
10
|
+
super(name, **)
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
@@ -7,14 +7,14 @@ module Plutonium
|
|
7
7
|
|
8
8
|
attr_reader :inputs, :resource_class
|
9
9
|
|
10
|
-
def initialize(name, inputs:, resource_class:, allow_destroy:, update_only:, limit:, **
|
10
|
+
def initialize(name, inputs:, resource_class:, allow_destroy:, update_only:, limit:, **)
|
11
11
|
@inputs = inputs
|
12
12
|
@resource_class = resource_class
|
13
13
|
@allow_destroy = allow_destroy
|
14
14
|
@update_only = update_only
|
15
15
|
@limit = limit
|
16
16
|
|
17
|
-
super(name, **
|
17
|
+
super(name, **)
|
18
18
|
end
|
19
19
|
|
20
20
|
def render
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.0
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
@@ -1428,9 +1428,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1428
1428
|
version: 3.2.2
|
1429
1429
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1430
1430
|
requirements:
|
1431
|
-
- - "
|
1431
|
+
- - ">="
|
1432
1432
|
- !ruby/object:Gem::Version
|
1433
|
-
version:
|
1433
|
+
version: '0'
|
1434
1434
|
requirements: []
|
1435
1435
|
rubygems_version: 3.4.10
|
1436
1436
|
signing_key:
|