module Propshaft::Helper

Public Instance Methods

all_stylesheets_paths() click to toggle source

Returns a sorted and unique array of logical paths for all stylesheets in the load path.

# File lib/propshaft/helper.rb, line 21
def all_stylesheets_paths
  Rails.application.assets.load_path.asset_paths_by_type("css")
end
app_stylesheets_paths() click to toggle source

Returns a sorted and unique array of logical paths for all stylesheets in app/assets/*/.css.

# File lib/propshaft/helper.rb, line 26
def app_stylesheets_paths
  Rails.application.assets.load_path.asset_paths_by_glob("#{Rails.root.join("app/assets")}/**/*.css")
end
compute_asset_path(path, options = {}) click to toggle source
# File lib/propshaft/helper.rb, line 3
def compute_asset_path(path, options = {})
  Rails.application.assets.resolver.resolve(path) || raise(MissingAssetError.new(path))
end