Skip to content

Commit

Permalink
Actually output the revealed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Feb 8, 2022
1 parent d391d54 commit 2585491
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/propshaft/assembly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def compilers
def reveal(path_type = :logical_path)
path_type = path_type.presence_in(%i[ logical_path path ]) || raise(ArgumentError, "Unknown path_type: #{path_type}")

load_path.assets.each do |asset|
Propshaft.logger.info asset.send(path_type)
load_path.assets.collect do |asset|
asset.send(path_type)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/propshaft/railties/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ namespace :assets do

desc "Print all the assets available in config.assets.paths"
task reveal: :environment do
Rails.application.assets.reveal(:logical_path)
puts Rails.application.assets.reveal(:logical_path).join("\n")
end

namespace :reveal do
desc "Print the full path of assets available in config.assets.paths"
task full: :environment do
Rails.application.assets.reveal(:path)
puts Rails.application.assets.reveal(:path).join("\n")
end
end
end

0 comments on commit 2585491

Please sign in to comment.