Skip to content

Commit 1555322

Browse files
committed
try revert
1 parent 2cacb71 commit 1555322

File tree

1 file changed

+8
-8
lines changed
  • lib/active_admin_datetimepicker

1 file changed

+8
-8
lines changed

lib/active_admin_datetimepicker/base.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def input_html_data
1414
end
1515

1616
def input_html_options(input_name = nil, placeholder = nil)
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
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[:placeholder] = placeholder unless placeholder.nil?
24+
options
2525
end
2626

2727
def input_value(input_name = nil)

0 commit comments

Comments
 (0)