phlexi-form 0.5.0 → 0.5.1

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: 454cb0f7804d3a7c10a6afdb3fe9bb7342e63bc76ee02750ea4a65f95e853449
4
- data.tar.gz: 97c56aabb6e2c6b3b83f0c4782ac8724427fd93d211f5ac16f1dd42a4f1c1ac0
3
+ metadata.gz: 7ac3397bb304c81e234196e86557aab193ef8d6a53716ec1422ea91e3419f74d
4
+ data.tar.gz: 4e43c5162c7b52c219fb13bbc5ea6b03d972e626c680e7d37a048082743c328f
5
5
  SHA512:
6
- metadata.gz: 46350c1288b35d787080eff648bf86b23a55a1a122d234dfe2611cf91133d922f0e0747826cbf5a3980af7ebad55c07947953432bc3c700456871e7ab99ccb00
7
- data.tar.gz: 31936b709b68353f3c855ec809e582f1d43a2c5669bcadec9499a0ea315ed66c9cf74038176b9106d4f316953a8111669aeaa63bc44f1fe48c92d746b86fcb8c
6
+ metadata.gz: fea5552a774d2d0c548745d66af37a48bb560a620879a30ad19158866f924558fb91c8a458d78050f768652f9249798b752803b31bf5d0e83b133979947d1de4
7
+ data.tar.gz: b7876511b1b81038ab04e3255efe12e366c0a357d7ee796467e1be36ddffd2c748fbfa36cef614255790cbffaa41cfe6dc025f501a38441ae81882ed42bea86b
@@ -7,6 +7,8 @@ module Phlexi
7
7
  private
8
8
 
9
9
  def infer_field_component
10
+ return :select if choices
11
+
10
12
  case inferred_field_type
11
13
  when :string, :text
12
14
  infer_string_field_type || inferred_field_type
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlexi
4
4
  module Form
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexi-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich