Permalink
Browse files

Ruby 1.9 compat: Avoid using the return value of FileUtils.mkdir_p, a…

…s it does not return a String but an Array in Ruby 1.9

[#2018 state:committed milestone:2.3.5]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 0990a13 commit 3ce16b4c5fd3007d6b43364253506462e680b227 @amatsuda amatsuda committed with jeremy Feb 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/plugin.rb
@@ -232,7 +232,7 @@ def install_using_http(options = {})
def install_using_git(options = {})
root = rails_env.root
- install_path = mkdir_p "#{root}/vendor/plugins/#{name}"
+ mkdir_p(install_path = "#{root}/vendor/plugins/#{name}")
Dir.chdir install_path do
init_cmd = "git init"
init_cmd += " -q" if options[:quiet] and not $verbose

0 comments on commit 3ce16b4

Please sign in to comment.