Sha256: 7c382adf1fc8f2fe732676764c9f9c5dbd74b40683a575c68e8c73c788258786
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
module InlineSvg class PropshaftAssetFinder def self.find_asset(filename) new(filename) end def initialize(filename) @filename = filename end def pathname asset_path = ::Rails.application.assets.load_path.find(@filename) asset_path.path unless asset_path.nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inline_svg-1.10.0 | lib/inline_svg/propshaft_asset_finder.rb |
inline_svg-1.9.0 | lib/inline_svg/propshaft_asset_finder.rb |