Class: RailsExecution::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/rails_execution/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_configObject



20
21
22
# File 'lib/generators/rails_execution/install_generator.rb', line 20

def copy_config
  template 'config.rb', 'config/initializers/rails_execution.rb'
end

#copy_migrationObject



16
17
18
# File 'lib/generators/rails_execution/install_generator.rb', line 16

def copy_migration
  migration_template 'install.rb', 'db/migrate/install_execution.rb', migration_version: migration_version
end

#mount_engineObject



24
25
26
# File 'lib/generators/rails_execution/install_generator.rb', line 24

def mount_engine
  route "mount RailsExecution::Engine, at: 'execution'"
end