diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-19 04:21:12 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-19 04:21:12 +0000 |
commit | d7515d4b09e8384ac99d019fe512d7e4aadffd1c (patch) | |
tree | ea3ddd51fdd45aadb86dbca116fdfa0ccc4fac09 /railties/lib/rails_generator | |
parent | 16c3ec7b2807f2f57d86399e6f62163a8962ec8b (diff) | |
download | rails-d7515d4b09e8384ac99d019fe512d7e4aadffd1c.tar.gz rails-d7515d4b09e8384ac99d019fe512d7e4aadffd1c.tar.bz2 rails-d7515d4b09e8384ac99d019fe512d7e4aadffd1c.zip |
Ruby 1.9 compat: use .to_a instead of .map which now returns an enumerator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/lookup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/lookup.rb b/railties/lib/rails_generator/lookup.rb index 598cb79e73..d88a1948a4 100644 --- a/railties/lib/rails_generator/lookup.rb +++ b/railties/lib/rails_generator/lookup.rb @@ -139,7 +139,7 @@ module Rails private # Lookup and cache every generator from the source list. def cache - @cache ||= sources.inject([]) { |cache, source| cache + source.map } + @cache ||= sources.inject([]) { |cache, source| cache + source.to_a } end # Clear the cache whenever the source list changes. |