Class: Comatose::Generators::ComatoseGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/comatose/comatose_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_assetsObject



31
32
33
# File 'lib/generators/comatose/comatose_generator.rb', line 31

def copy_assets
  # TODO
end

#copy_rake_filesObject



26
27
28
# File 'lib/generators/comatose/comatose_generator.rb', line 26

def copy_rake_files
  # TODO
end

#create_init_fileObject



21
22
23
# File 'lib/generators/comatose/comatose_generator.rb', line 21

def create_init_file
  template "comatose.rb", "config/initializers/comatose.rb"
end

#create_migration_fileObject



16
17
18
# File 'lib/generators/comatose/comatose_generator.rb', line 16

def create_migration_file
  migration_template "migration.erb", "db/migrate/add_comatose_support.rb"
end