Sha256: 24027f230327cf7c527f300ef04ad1dfc62a2ddb6a8f1e49098e10c3f894fc9b

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

module SharingTags
  class FindsAssetPaths
    def self.by_filename(filename)
      asset = configured_asset_finder.find_asset(filename)
      asset && asset.pathname
    end

    def self.configured_asset_finder
      SharingTags.config.asset_finder
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sharing_tags-0.0.18 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.17 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.16 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.15 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.14 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.13 lib/sharing_tags/finds_asset_paths.rb
sharing_tags-0.0.12 lib/sharing_tags/finds_asset_paths.rb