Class: Roadie::AssetPipelineProvider

Inherits:
AssetProvider show all
Defined in:
lib/roadie/asset_pipeline_provider.rb

Overview

A provider that hooks into Rail’s Asset Pipeline.

Usage:

config.roadie.provider = AssetPipelineProvider.new('prefix')

Instance Attribute Summary

Attributes inherited from AssetProvider

#prefix

Instance Method Summary collapse

Methods inherited from AssetProvider

#all, #initialize

Constructor Details

This class inherits a constructor from Roadie::AssetProvider

Instance Method Details

#find(name) ⇒ String

Looks up the file with the given name in the asset pipeline

Returns:

  • (String)

    contents of the file



12
13
14
# File 'lib/roadie/asset_pipeline_provider.rb', line 12

def find(name)
  asset_file(name).to_s.strip
end