aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/generate.rb
blob: 5e45d8ab467e8d7cac52cf74a5bdd640b6e00d8a (plain) (tree)
1
2
3
4
5
6
7
8
9
                          
 





                        
                                                                                          
require 'rails/generators'

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

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