phlexi-form 0.5.2 → 0.5.3

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: e6b1a5926f08261bf0fa3c607395ddd570c52417636f559b7f11a87a46e8c06d
4
- data.tar.gz: ca036dc0035a0161fe4a0411dddbff11d7b1edea529b266ac3b29b1caded91e5
3
+ metadata.gz: 9c96e6448f0af93d2a4f61de357fc79b9d267bdb1e81ff59b0dc8052a9414981
4
+ data.tar.gz: 7b75993729cc685d579f2189fbcc21f14a65a4bc79fff7c7f51899a08ad0cfb2
5
5
  SHA512:
6
- metadata.gz: 94a54baa5507d3309efbf06dc8aa230ec8814be37fe7a99e72b294c9d3ed0528e90ea5f782b1333179a5fef8b3b244355b22f38b8bd4d98a661d40440adc52ad
7
- data.tar.gz: bea9112fe8131a517381b1a2d4715b266b09fe82a608e96495366e43d4a565ae0bd60296e455118ad515ea41d795e49218a917367dcd3c7478fc88d2ce0cd1da
6
+ metadata.gz: cfd18aa32ccdb4bf16b1be93a86f3dc8efbe70387da74d4243a8365c9789fdb5d228e6ab0dd09e20f6b21d8be1dd722075fcbf7e4503d1a3988452dbf4c79cf0
7
+ data.tar.gz: fe4d87917d30269e9c34cbd9b650098923ee6299e45b67a4af70a0a90a2797aebb4abe1fd0c367f1e5bbc3c5366b5419b48d857bb7c1f12df5019b4da1f9d142
@@ -7,7 +7,7 @@ module Phlexi
7
7
  private
8
8
 
9
9
  def infer_field_component
10
- return :select if choices
10
+ return :select if inferred_field_type != :association && choices
11
11
 
12
12
  case inferred_field_type
13
13
  when :string, :text
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlexi
4
4
  module Form
5
- VERSION = "0.5.2"
5
+ VERSION = "0.5.3"
6
6
  end
7
7
  end
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.2
4
+ version: 0.5.3
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-10-28 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex