From ff4fe6539ced519e2680cc315303bbc1b806cd49 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 7 Sep 2023 03:07:31 -0400 Subject: [PATCH] Use Ruby 3 keyword argument handling for find_asset! --- lib/sprockets/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sprockets/base.rb b/lib/sprockets/base.rb index b1137cb3c..db3848d1e 100644 --- a/lib/sprockets/base.rb +++ b/lib/sprockets/base.rb @@ -122,8 +122,8 @@ def [](*args, **options) # Find asset by logical path or expanded path. # # If the asset is not found an error will be raised. - def find_asset!(*args) - uri, _ = resolve!(*args) + def find_asset!(*args, **kwargs) + uri, _ = resolve!(*args, **kwargs) if uri load(uri) end