lib/propshaft/load_path.rb in propshaft-0.6.2 vs lib/propshaft/load_path.rb in propshaft-0.6.3
- old
+ new
@@ -66,11 +66,11 @@
@cached_assets_by_path = nil
end
def dedup(paths)
[].tap do |deduped|
- Array(paths).sort.each do |path|
- deduped << Pathname.new(path) if deduped.blank? || !path.to_s.start_with?(deduped.last.to_s)
+ Array(paths).map(&:to_s).sort.each do |path|
+ deduped << Pathname.new(path) if deduped.blank? || !path.start_with?(deduped.last.to_s)
end
end
end
end