simple_form_bootstrap3 0.2.3 → 0.2.4
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: cd1beacf5c4641db392cdbac70092159f1446b59
|
4
|
+
data.tar.gz: de9ab571777ffc18d12340b68a0caeee7083a036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ad3763abc2b5c9cfe51c3668b0f0245a37e63299ad342b899f11cfb2f7e01de3a36d8b547854a93d5ae1c6f977f4d9421846f10ed8614ecf86a94eb2196ec99
|
7
|
+
data.tar.gz: d6851fd4df9d46420b749d46bd6358e0df7d0de5ceaf91d48d5e87530280308d56aa6d09c79b2e6db09bf156aee2db875f2d9134bd80b8d3eba1d072e3968a3f
|
@@ -11,7 +11,11 @@ module SimpleForm
|
|
11
11
|
private
|
12
12
|
|
13
13
|
def input_html_options
|
14
|
-
|
14
|
+
options[:value] = Time.zone.parse(options[:value]) if options[:value].is_a? String
|
15
|
+
|
16
|
+
{ class: 'form-control',
|
17
|
+
readonly: true,
|
18
|
+
value: (options[:value].presence || object.send(attribute_name)).strftime("%Y-%m-%d") }
|
15
19
|
end
|
16
20
|
|
17
21
|
def span_calendar
|
@@ -11,7 +11,11 @@ module SimpleForm
|
|
11
11
|
private
|
12
12
|
|
13
13
|
def input_html_options
|
14
|
-
|
14
|
+
options[:value] = Time.zone.parse(options[:value]) if options[:value].is_a? String
|
15
|
+
|
16
|
+
{ class: 'form-control',
|
17
|
+
readonly: true,
|
18
|
+
value: (options[:value].presence || object.send(attribute_name)).strftime("%Y-%m-%d %H:%M") }
|
15
19
|
end
|
16
20
|
|
17
21
|
def span_calendar
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_bootstrap3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuriy Kolodovskyy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|