active_admin_datetimepicker 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/active_admin_datetimepicker/base.rb +8 -7
- data/lib/active_admin_datetimepicker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe148826aac56abdb6868df333355726ead9c3cbf414b289d99316fdb27fbe7
|
4
|
+
data.tar.gz: bb4aa5c2dfc34d261d6dd4469289da14a251385fdd058801ba7d42a055b0f9fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87cd94c73f8680580ab437f292fcf8b5e6fe97a7c6773fbcc54d40bbf2bd216dad75a44246a4f0db74b244cb8bbc70ff19c67f9ed4c704e5a9b624d6fa26e527
|
7
|
+
data.tar.gz: 1249f3e2dc2f1cbe5585d22420e220201db943c636420745fae2f8e5d7d0950d3c61ecd3b42adab97ef5e312eb35ee72609a539845bad76f1afa106c0050864d
|
data/.gitignore
CHANGED
@@ -14,13 +14,14 @@ module ActiveAdminDatetimepicker
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def input_html_options(input_name = nil, placeholder = nil)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
super().tap do |options|
|
18
|
+
options[:class] = [self.options[:class], html_class].compact.join(' ')
|
19
|
+
options[:data] ||= input_html_data
|
20
|
+
options[:data].merge!(datepicker_options: datetime_picker_options)
|
21
|
+
options[:value] ||= input_value(input_name)
|
22
|
+
options[:maxlength] = 19
|
23
|
+
options[:placeholder] = placeholder unless placeholder.nil?
|
24
|
+
end
|
24
25
|
end
|
25
26
|
|
26
27
|
def input_value(input_name = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_datetimepicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Fedoronchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|