1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Provide a better error if thor is missing

This commit is contained in:
wycats 2010-03-22 14:08:50 -07:00
parent a4090bca6a
commit d03af48a7d

View file

@ -1,4 +1,12 @@
require 'thor/group'
begin
require 'thor/group'
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 -rubygems /path/to/rails myapp --dev`"
exit
end
require 'rails/generators/actions'
module Rails