Class: ActiveAdmin::Generator::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/active_admin/generator/cli.rb

Instance Method Summary collapse

Instance Method Details

#new(name) ⇒ Object



10
11
12
13
14
# File 'lib/active_admin/generator/cli.rb', line 10

def new(name)
  ARGV.shift(ARGV.count)
  ARGV.unshift name, '-T', '-m', File.join(File.dirname(__FILE__), "base.rb"), '--trace'
  Rails::Generators::AppGenerator.start
end