From 3992e5549e71e940c48790bbe3fde680bf47fa1d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 20 May 2024 16:01:41 -0700 Subject: [PATCH] Document :app for helper --- lib/propshaft/helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/propshaft/helper.rb b/lib/propshaft/helper.rb index 4cf44c2..f84427f 100644 --- a/lib/propshaft/helper.rb +++ b/lib/propshaft/helper.rb @@ -4,7 +4,8 @@ def compute_asset_path(path, options = {}) Rails.application.assets.resolver.resolve(path) || raise(MissingAssetError.new(path)) end - # Add an option to call `stylesheet_link_tag` with `:all` to include every css file found on the load path. + # Add an option to call `stylesheet_link_tag` with `:all` to include every css file found on the load path + # or `:app` to include css files found in `Rails.root("app/assets/**/*.css")`, which will exclude lib/ and plugins. def stylesheet_link_tag(*sources, **options) case sources.first when :all