lib/propshaft/load_path.rb in propshaft-0.7.0 vs lib/propshaft/load_path.rb in propshaft-0.8.0
- old
+ new
@@ -46,11 +46,10 @@
def assets_by_path
@cached_assets_by_path ||= Hash.new.tap do |mapped|
paths.each do |path|
without_dotfiles(all_files_from_tree(path)).each do |file|
logical_path = file.relative_path_from(path)
- asset = Propshaft::Asset.new(file, logical_path: logical_path, version: version)
- mapped[asset.logical_path.to_s] ||= asset
+ mapped[logical_path.to_s] ||= Propshaft::Asset.new(file, logical_path: logical_path, version: version)
end if path.exist?
end
end
end