aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/generate.rb
blob: c1120aad74a6e90f142cb84092f726fb84abb44b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
require 'rails/generators'
Rails::Generators.configure!

if ARGV.size == 0
  Rails::Generators.help
  exit
end

name = ARGV.shift
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root