diff options
author | Akira Matsuda <ronnie@dio.jp> | 2009-02-20 01:27:43 +0900 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-11 19:20:57 -0700 |
commit | 3ce16b4c5fd3007d6b43364253506462e680b227 (patch) | |
tree | 32821cebc1f32657d9122083c6a54180422ed5ea | |
parent | 0990a13500d036f9b8cf4c11eb1056069357fca7 (diff) | |
download | rails-3ce16b4c5fd3007d6b43364253506462e680b227.tar.gz rails-3ce16b4c5fd3007d6b43364253506462e680b227.tar.bz2 rails-3ce16b4c5fd3007d6b43364253506462e680b227.zip |
Ruby 1.9 compat: Avoid using the return value of FileUtils.mkdir_p, as 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>
-rw-r--r-- | railties/lib/commands/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 3d76bcc73f..159db707e7 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -232,7 +232,7 @@ class Plugin 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 |