Class: Comatose::Generators::ComatoseGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Comatose::Generators::ComatoseGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/comatose/comatose_generator.rb
Instance Method Summary collapse
- #copy_assets ⇒ Object
- #copy_rake_files ⇒ Object
- #create_init_file ⇒ Object
- #create_migration_file ⇒ Object
Instance Method Details
#copy_assets ⇒ Object
31 32 33 |
# File 'lib/generators/comatose/comatose_generator.rb', line 31 def copy_assets # TODO end |
#copy_rake_files ⇒ Object
26 27 28 |
# File 'lib/generators/comatose/comatose_generator.rb', line 26 def copy_rake_files # TODO end |
#create_init_file ⇒ Object
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_file ⇒ Object
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 |