Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't modify the thing you are iterating over

Fixes #168
  • Loading branch information...
josh committed Aug 29, 2011
1 parent d6b665e commit a2a792f78931550d813666e819061b9e8baefba9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sprockets/trail.rb
@@ -47,7 +47,7 @@ def append_path(path)
# you want.
def clear_paths
expire_index!
@trail.paths.each { |path| @trail.remove_path(path) }
@trail.paths.dup.each { |path| @trail.remove_path(path) }
end

# Returns an `Array` of extensions.

0 comments on commit a2a792f

Please sign in to comment.
You can’t perform that action at this time.