effective_form_inputs 0.8.16 → 0.8.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0d3a67b2f579bf700342c81022d532446140435
4
- data.tar.gz: 7be2952046b9b14b7c25fa2db0d73e0b7615d2f5
3
+ metadata.gz: 8fd4390225a4f50443ae627c21542ad1d096b088
4
+ data.tar.gz: abe4caadf9b054f84439c402324904c3c72cf88c
5
5
  SHA512:
6
- metadata.gz: 017b254b1adfa4686f26ab1ad9e61bb43a57b8de6ef9f278a114f7c6493a3cb076cead5da3dbea3e6eef7db27a59a8698bf40989f3eec31d06ce5ee10e571fe8
7
- data.tar.gz: ca530b8116fec0c099cb4363f42d64efbcee1986d56258b8245b71a6f0030952b3cb2f50be2bfdc126ddca078c77be4991cde2f10d0cab546dd020690baf8265
6
+ metadata.gz: 916ff497eff505d65e78f9f1630ef416ca5ace3f4f4046c5d7be17a3abb6eb55d143ad1115e9677213af292b588ce89eeac824f09d8e2ad6ee853b87162390a4
7
+ data.tar.gz: ebd4ce4227044ccd480a1d541c93dc5f2bbbe061e06d9464d3521633488f1a2d28d92414adca6fa0a134ca6c326143643c81b93167341a8c6389055eddd9b6c9
@@ -104,7 +104,7 @@ module Inputs
104
104
  options[:include_blank] = (options[:multiple] != true)
105
105
 
106
106
  # Fix the selected value, depending on our use case
107
- if value.present?
107
+ unless value.nil?
108
108
  case value
109
109
  when Array
110
110
  if options[:polymorphic]
@@ -2,31 +2,3 @@
2
2
 
3
3
  = form_for Effective::StyleGuide.new(:category => 'Category 2'), :url => '/' do |f|
4
4
  = f.effective_ckeditor_text_area :content
5
-
6
- / = f.input :updated_at, as: :effective_date_picker
7
- / = f.input :updated_at, as: :effective_date_time_picker
8
- / = f.input :price, as: :effective_price
9
- / = f.input :category, as: :effective_select, collection: 10.times.map { |x| "Category #{x}"}
10
- / = f.input :number, as: :effective_tel
11
-
12
- / = f.date_field :updated_at, :class => 'my-class'
13
- / = f.effective_date_picker :updated_at, :class => 'my-class'
14
- / %hr
15
- / = f.datetime_field :updated_at
16
- / = f.effective_date_time_picker :updated_at
17
- / %hr
18
- / = f.select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'my-class'}
19
- / = f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'my-class'}
20
- / %hr
21
- / = f.select :category, 10.times.map { |x| "Category #{x}"}, {:multiple => true}, {:class => 'my-class'}
22
- / = f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:multiple => true}, {:class => 'my-class'}
23
- / %hr
24
- / = f.effective_static_control :static_text, :value => 'this is static control value', :class => 'my-class'
25
-
26
-
27
- /= f.text_field :title, :class => 'my-text-field'
28
- /= f.datetime_field :updated_at, :class => 'my-updated-at-class', :something => 'cool'
29
- /= f.effective_date_time_picker :updated_at, :class => 'my-updated-at-class', :something => 'cool'
30
-
31
- /= f.select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'myclass'}
32
- /= f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => false}, {:class => 'myclass'}
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.8.16'.freeze
2
+ VERSION = '0.8.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.16
4
+ version: 0.8.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails