Make sure the Thor generator LoadError does not output --dev twice [#6431 state:resolved]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
Jeff Kreeftmeijer
2011-02-14 19:38:12 +01:00
committed by Santiago Pastorino
parent f3e9cbc695
commit 86ad8a6c87

View File

@@ -3,7 +3,7 @@ begin
rescue LoadError
puts "Thor is not available.\nIf you ran this command from a git checkout " \
"of Rails, please make sure thor is installed,\nand run this command " \
"as `ruby #{$0} #{ARGV.join(" ")} --dev`"
"as `ruby #{$0} #{(ARGV | ['--dev']).join(" ")}`"
exit
end