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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d0661663f34baf520b69cc359b1b1f77e35b00030302fc06048404dc18c6aaa
4
- data.tar.gz: a04a5cf0f10fc9bb2a0d1533482117dfde74364b72061ac4d68db7b90a71cc46
3
+ metadata.gz: 5fe148826aac56abdb6868df333355726ead9c3cbf414b289d99316fdb27fbe7
4
+ data.tar.gz: bb4aa5c2dfc34d261d6dd4469289da14a251385fdd058801ba7d42a055b0f9fd
5
5
  SHA512:
6
- metadata.gz: ca1b83aeeb980d5220cc3157bfc2d999897e0ad0a4ec9d42a9d77bf3cc4fd04f80091fd4c62152c8cf3316702102ebda05e193775fe88fc5614387cbed44a604
7
- data.tar.gz: 492ecff0dc6f2ba3da0ef21c79dc7d9a7e04930fe9936ceb2bf43c37249e1dbe4a68ca15bfa2567273942a20b50a7d8b774d823ac90582d99d75c6c6b01eab7b
6
+ metadata.gz: 87cd94c73f8680580ab437f292fcf8b5e6fe97a7c6773fbcc54d40bbf2bd216dad75a44246a4f0db74b244cb8bbc70ff19c67f9ed4c704e5a9b624d6fa26e527
7
+ data.tar.gz: 1249f3e2dc2f1cbe5585d22420e220201db943c636420745fae2f8e5d7d0950d3c61ecd3b42adab97ef5e312eb35ee72609a539845bad76f1afa106c0050864d
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
1
  Gemfile.lock
2
2
  coverage/
3
3
  spec/rails/rails-5.2.1/
4
- pgk/
4
+ pkg
@@ -14,13 +14,14 @@ module ActiveAdminDatetimepicker
14
14
  end
15
15
 
16
16
  def input_html_options(input_name = nil, placeholder = nil)
17
- 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
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)
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminDatetimepicker
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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.0
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-05-13 00:00:00.000000000 Z
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails