Class: ConfigureMe::SetupGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- ConfigureMe::SetupGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/configure_me/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_initializer ⇒ Object
17 18 19 |
# File 'lib/generators/configure_me/setup_generator.rb', line 17 def generate_initializer template 'initializer.rb', 'config/initializers/init_configure_me.rb' end |
#generate_migration ⇒ Object
13 14 15 |
# File 'lib/generators/configure_me/setup_generator.rb', line 13 def generate_migration migration_template 'migration.rb', "db/migrate/create_#{plural_name}.rb" end |
#generate_model ⇒ Object
9 10 11 |
# File 'lib/generators/configure_me/setup_generator.rb', line 9 def generate_model template 'model.rb', "app/models/#{singular_name}.rb" end |