From 81fdfbdc0b8d64b63b85fff1a12c172398bd3c4e Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 7 Nov 2022 22:25:34 +1030 Subject: [PATCH] DEPRECATION WARNING: Date#to_s(:ymd) is deprecated. Please use Date#to_fs(:ymd) instead. --- app/views/shared/editable/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/editable/_form.html.haml b/app/views/shared/editable/_form.html.haml index 1c51efdae..69b79cbcf 100644 --- a/app/views/shared/editable/_form.html.haml +++ b/app/views/shared/editable/_form.html.haml @@ -13,6 +13,6 @@ = f.select field, collection - elsif field_type == :date = f.text_field field, - value: model.send(field) ? model.send(field).to_s(:ymd) : '', + value: model.send(field) ? model.send(field).to_fs(:ymd) : '', class: 'add-datepicker', label: 'When?' = f.submit :save