Skip to content

Commit

Permalink
Make sure the Thor generator LoadError does not output --dev twice [#…
Browse files Browse the repository at this point in the history
…6431 state:resolved]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
Jeff Kreeftmeijer authored and spastorino committed Feb 27, 2011
1 parent f3e9cbc commit 86ad8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/base.rb
Expand Up @@ -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

Expand Down

0 comments on commit 86ad8a6

Please sign in to comment.