class InlineSvg::FindsAssetPaths
Public Class Methods
by_filename(filename)
click to toggle source
# File lib/inline_svg/finds_asset_paths.rb, line 3 def self.by_filename(filename) asset = configured_asset_finder.find_asset(filename) asset.try(:pathname) || asset.try(:filename) end
configured_asset_finder()
click to toggle source
# File lib/inline_svg/finds_asset_paths.rb, line 8 def self.configured_asset_finder Thread.current[:inline_svg_asset_finder] || InlineSvg.configuration.asset_finder end