aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2008-09-09 17:24:23 +0900
committerJeremy Kemper <jeremy@bitsweat.net>2008-09-09 10:35:24 -0700
commit8e68ec4dcceb606853a50d41076c7d5e118089b7 (patch)
treee6da3a96615363eca898579417217d69be12041d /railties
parent07eb9ffd151b622eccb1dd527455b4f6f10973ff (diff)
downloadrails-8e68ec4dcceb606853a50d41076c7d5e118089b7.tar.gz
rails-8e68ec4dcceb606853a50d41076c7d5e118089b7.tar.bz2
rails-8e68ec4dcceb606853a50d41076c7d5e118089b7.zip
Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9
[#1001 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/commands/plugin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb
index 980244a71b..5c6cb7605c 100644
--- a/railties/lib/commands/plugin.rb
+++ b/railties/lib/commands/plugin.rb
@@ -901,7 +901,7 @@ class RecursiveHTTPFetcher
def initialize(urls_to_fetch, level = 1, cwd = ".")
@level = level
@cwd = cwd
- @urls_to_fetch = urls_to_fetch.to_a
+ @urls_to_fetch = RUBY_VERSION >= '1.9' ? urls_to_fetch.lines : urls_to_fetch.to_a
@quiet = false
end