Class: AssetPrecompilationFinder::Finder
- Inherits:
-
Object
- Object
- AssetPrecompilationFinder::Finder
- Defined in:
- lib/asset_precompilation_finder.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ Finder
constructor
A new instance of Finder.
- #list ⇒ Object
Constructor Details
#initialize(app) ⇒ Finder
Returns a new instance of Finder.
5 6 7 |
# File 'lib/asset_precompilation_finder.rb', line 5 def initialize app @app = app end |
Instance Method Details
#list ⇒ Object
9 10 11 12 13 |
# File 'lib/asset_precompilation_finder.rb', line 9 def list paths = @app.assets.each_logical_path paths = paths.reject { |p| File.basename(p).starts_with?("_") } # don't compile partials paths = paths.sort { |a,b| a.ends_with?(".css") ? 1 : -1 } # compile css last, as it may depend on other assets, like images end |