Class: Approval::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/approval/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializerObject


9
10
11
# File 'lib/generators/approval/install_generator.rb', line 9

def create_initializer
  copy_file "initializer.rb.tt", "config/initializers/approval.rb"
end

#create_migration_fileObject


5
6
7
# File 'lib/generators/approval/install_generator.rb', line 5

def create_migration_file
  rake "approval_engine:install:migrations"
end