Browse files

Use reverse_each rather than reverse.each. [Marcel Molina Jr.]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 68ab908 commit 4daf2c1ee64188095730c29f5838bbc7d3490d9d Marcel Molina committed Apr 30, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/initializer.rb
View
2 railties/lib/initializer.rb
@@ -118,7 +118,7 @@ def check_ruby_version
# Set the <tt>$LOAD_PATH</tt> based on the value of
# Configuration#load_paths. Duplicates are removed.
def set_load_path
- configuration.load_paths.reverse.each { |dir| $LOAD_PATH.unshift(dir) if File.directory?(dir) }
+ configuration.load_paths.reverse_each { |dir| $LOAD_PATH.unshift(dir) if File.directory?(dir) }
$LOAD_PATH.uniq!
end

0 comments on commit 4daf2c1

Please sign in to comment.