From 76a95049042c51e62fa2f00b2111ff5e9508e2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Mugnolo?= Date: Tue, 24 Oct 2023 11:40:29 -0400 Subject: [PATCH] Update lib/inline_svg.rb Co-authored-by: James Martin --- lib/inline_svg.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/inline_svg.rb b/lib/inline_svg.rb index 4fba526..b9fb405 100644 --- a/lib/inline_svg.rb +++ b/lib/inline_svg.rb @@ -47,9 +47,7 @@ def asset_finder end def asset_finder=(finder) - @asset_finder = if finder.respond_to?(:call) - finder - elsif finder.respond_to?(:find_asset) + @asset_finder = if finder.respond_to?(:call) || finder.respond_to?(:find_asset) finder elsif finder.class.name == "Propshaft::Assembly" InlineSvg::PropshaftAssetFinder