phlexi-form 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phlexi/form/builder.rb +5 -2
- data/lib/phlexi/form/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: cd38319ce7c06a99fbb83261e0fa96821e6049f6b93cc5848f1da7695b8e4ea9
|
4
|
+
data.tar.gz: f593681253aa19b99d0ad0a65f0ae578cb21367616174bf5586bdfc2d5eafb82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da2017464ce01777a247523817fc9be624fb103aa4e718d0982c66ee14f70cd4e4c92b0ff0a691f265376f460783e545f98885f1518be2f91914fe52b8c2e1b6
|
7
|
+
data.tar.gz: 9e36f93601d8c36034892e5dccb3e150fd7e5495519c2da441bb0921ede249421d7ae2649113da78e760fabe26ed22bb53186f1986570be4d8401cc4b6bfb90d
|
data/lib/phlexi/form/builder.rb
CHANGED
@@ -264,8 +264,11 @@ module Phlexi
|
|
264
264
|
# TODO: refactor all this type checking code such that, the concerns will perform these actions.
|
265
265
|
# Basically, invert control so that the component asks for the extra attributes
|
266
266
|
# or calls #has_file_input!
|
267
|
-
if component_class.include?(Phlexi::Form::Components::Concerns::HandlesInput)
|
268
|
-
|
267
|
+
attributes = if component_class.include?(Phlexi::Form::Components::Concerns::HandlesInput)
|
268
|
+
mix(input_attributes, attributes)
|
269
|
+
else
|
270
|
+
# we want to mix to ensure that any overrides are properly applied
|
271
|
+
mix(attributes)
|
269
272
|
end
|
270
273
|
component = component_class.new(self, **attributes, &)
|
271
274
|
if component_class.include?(Components::Concerns::ExtractsInput)
|
data/lib/phlexi/form/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phlexi-form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|