Skip to content
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 44fbc86 commit c5e3309bb4e63fafb363da8f7eb2364530f9f96f @amatsuda amatsuda committed with jeremy Feb 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/plugin.rb
View
2 railties/lib/commands/plugin.rb
@@ -268,7 +268,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 c5e3309

Please sign in to comment.
Something went wrong with that request. Please try again.