From dee2cfaba31c8dedcc9413f4957451b8468e77d7 Mon Sep 17 00:00:00 2001 From: Nathan Colgate Date: Tue, 30 Jan 2024 14:31:51 -0600 Subject: [PATCH] Update wiki_pages_helper.rb Support splatted params in Ruby 3 --- lib/irwi/helpers/wiki_pages_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irwi/helpers/wiki_pages_helper.rb b/lib/irwi/helpers/wiki_pages_helper.rb index c3dd00e..cec8f76 100644 --- a/lib/irwi/helpers/wiki_pages_helper.rb +++ b/lib/irwi/helpers/wiki_pages_helper.rb @@ -97,7 +97,7 @@ def wt(msg, *args) config = args.extract_options! config[:default] = msg if config[:default].blank? config[:scope] = 'wiki' - I18n.t(msg, config) + I18n.t(msg, **config) end def wiki_page_style