Class: Motor::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/motor/install_generator.rb

Instance Method Summary collapse

Methods included from Migration

next_migration_number

Instance Method Details

#copy_migrationObject


17
18
19
20
21
# File 'lib/generators/motor/install_generator.rb', line 17

def copy_migration
  migration_template 'install.rb', 'db/migrate/install_motor_admin.rb'

  route "mount Motor::Admin => '/motor_admin'"
end