diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-30 08:06:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-30 08:06:45 +0000 |
commit | 4daf2c1ee64188095730c29f5838bbc7d3490d9d (patch) | |
tree | 68dcd035bd899ed28cdd8fd2acaf8bd5f106bea1 /railties | |
parent | 68ab9087166bde9e6083f660c8735947130b0866 (diff) | |
download | rails-4daf2c1ee64188095730c29f5838bbc7d3490d9d.tar.gz rails-4daf2c1ee64188095730c29f5838bbc7d3490d9d.tar.bz2 rails-4daf2c1ee64188095730c29f5838bbc7d3490d9d.zip |
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
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/initializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index eed5c16d9c..96144091e8 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -118,7 +118,7 @@ module Rails # 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 |