8000 Use default ActionView options instead of default Formtastic options · mirelon/activeadmin@f58d89d · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit f58d89d

Browse files
author
Michal Kováč
committed
Use default ActionView options instead of default Formtastic options
fixes activeadmin#5955
1 parent dd0a16f commit f58d89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/inputs/filters/date_range_input.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def input_html_options_for(input_name = gt_input_name, placeholder = gt_input_pl
3333
class: "datepicker",
3434
maxlength: 10,
3535
placeholder: placeholder,
36-
value: current_value ? current_value.strftime("%Y-%m-%d") : "" }.merge(input_html_options)
36+
value: current_value ? current_value.strftime("%Y-%m-%d") : "" }.merge(options[:input_html] || {})
3737
end
3838

3939
def gt_input_placeholder

0 commit comments

Comments
 (0)
0