Class: EbookGeneratorGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- EbookGeneratorGenerator
- Defined in:
- lib/generators/ebook_generator_generator.rb
Instance Method Summary collapse
-
#copy_files ⇒ Object
Copies the migration template to db/migrate.
- #create_initializer ⇒ Object
Instance Method Details
#copy_files ⇒ Object
Copies the migration template to db/migrate.
10 11 12 |
# File 'lib/generators/ebook_generator_generator.rb', line 10 def copy_files migration_template 'migration.rb', 'db/migrate/create_ebook_generator_tables.rb' end |
#create_initializer ⇒ Object
14 15 16 |
# File 'lib/generators/ebook_generator_generator.rb', line 14 def create_initializer copy_file 'initializer.rb', 'config/initializers/ebook_generator.rb' end |