Skip to content

Commit

Permalink
Document :app for helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 20, 2024
1 parent 6998e18 commit 3992e55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/propshaft/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3992e55

Please sign in to comment.