File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
lib/active_admin_datetimepicker Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ def input_html_data
14
14
end
15
15
16
16
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
25
25
end
26
26
27
27
def input_value ( input_name = nil )
You can’t perform that action at this time.
0 commit comments