From d07cb485eeac072722dc054664c836614fa85ae3 Mon Sep 17 00:00:00 2001 From: Jonathan Narwold Date: Thu, 12 Mar 2020 08:28:45 -0400 Subject: [PATCH] Added double splat to resolve deprecation warning --- lib/i18n/backend/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n/backend/base.rb b/lib/i18n/backend/base.rb index 1fe86ae4..672c993c 100644 --- a/lib/i18n/backend/base.rb +++ b/lib/i18n/backend/base.rb @@ -146,7 +146,7 @@ def resolve(locale, object, subject, options = EMPTY_HASH) I18n.translate(subject, **options.merge(:locale => locale, :throw => true)) when Proc date_or_time = options.delete(:object) || object - resolve(locale, object, subject.call(date_or_time, options)) + resolve(locale, object, subject.call(date_or_time, **options)) else subject end