Skip to content

Commit

Permalink
Update lib/inline_svg.rb
Browse files Browse the repository at this point in the history
Co-authored-by: James Martin <jamesmartin@users.noreply.github.com>
  • Loading branch information
xymbol and jamesmartin committed Oct 24, 2023
1 parent ab2b082 commit 76a9504
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/inline_svg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76a9504

Please sign in to comment.