From ded1e66d53f6d19ee97ff030f5b6d2c1730ed449 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 6 Nov 2022 16:29:26 +1030 Subject: [PATCH] DEPRECATION WARNING: Time#to_s(:number) is deprecated. Please use Time#to_fs(:number) instead --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a84b5d6b7..6f1cde5cf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -24,7 +24,7 @@ module ApplicationHelper # Produces a cache key for uniquely identifying cached fragments. def cache_key_for(klass, identifier = "all") count = klass.count - max_updated_at = klass.maximum(:updated_at).try(:utc).try(:to_s, :number) + max_updated_at = klass.maximum(:updated_at).try(:utc).try(:to_fs, :number) "#{klass.name.downcase.pluralize}/#{identifier}-#{count}-#{max_updated_at}" end