Permalink
Browse files

Make sure the Thor generator LoadError does not output --dev twice [#…

…6431 state:resolved]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
1 parent f3e9cbc commit 86ad8a6c877636b4df7966233dff7fea377b0790 @jeffkreeftmeijer jeffkreeftmeijer committed with spastorino Feb 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/base.rb
@@ -3,7 +3,7 @@
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

0 comments on commit 86ad8a6

Please sign in to comment.