Sha256: 84a45445032658a3b9abc420785528276b4695f1867430162fb9d12b0b0cb495

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

module InlineSvg
  class PropshaftAssetFinder
    def self.find_asset(filename)
      new(filename)
    end

    def initialize(filename)
      @filename = filename
    end

    def pathname
      ::Rails.application.assets.load_path.find(@filename).path
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inline_svg-1.8.0 lib/inline_svg/propshaft_asset_finder.rb