effective_form_inputs 0.9.0 → 0.9.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 302d7d81e88d9f434d633d20a3dd00fec344248c
|
4
|
+
data.tar.gz: f844591e1be8f56d3c6f9a8c2592e3ace75c6e21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8be1c61e8fe4bdfab9f5b53cfc2babd4eb9786c437acc3c3841b1f2cb93590e9ea3d84a5afb01d589274809770f85f84077bdadb7e1adff6e36172ed366a909
|
7
|
+
data.tar.gz: 5241cc03fc907342228b1012f405f7f5e48d1ebff8fdd9591706f404c8e6cf56d535ce7398a4753985ce2a8af5d605e5680160c48e608cf2705e4c0d081299c1
|
@@ -32,7 +32,7 @@ module Inputs
|
|
32
32
|
def html_options
|
33
33
|
super.tap do |html_options|
|
34
34
|
if js_options[:format] == default_input_js[:format] # Unless someone changed from the default
|
35
|
-
html_options[:pattern] = '\d{4}-\d{2}-\d{2}' # Match default pattern defined above
|
35
|
+
html_options[:pattern] = '\d{4}(-\d{2})?(-\d{2})?' # Match default pattern defined above
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -27,7 +27,7 @@ module Inputs
|
|
27
27
|
def html_options
|
28
28
|
super.tap do |html_options|
|
29
29
|
if js_options[:format] == default_input_js[:format] # Unless someone changed from the default
|
30
|
-
html_options[:pattern] = '\d{4}-\d{2}
|
30
|
+
html_options[:pattern] = '\d{4}(-\d{2})?-(\d{2})?( \d+)?(:\d{2})?' # Match default pattern defined above
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -5,7 +5,7 @@ if defined?(SimpleForm)
|
|
5
5
|
|
6
6
|
class EffectiveSelectInput < SimpleForm::Inputs::CollectionSelectInput
|
7
7
|
def input(wrapper_options = nil)
|
8
|
-
label_method, value_method = detect_collection_methods
|
8
|
+
label_method, value_method = (detect_collection_methods rescue [:to_s, :to_s])
|
9
9
|
|
10
10
|
options[:collection] = collection
|
11
11
|
options[:label_method] = label_method unless options[:polymorphic]
|
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.9.
|
4
|
+
version: 0.9.1
|
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-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|