Class: SubscriptionFu::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SubscriptionFu::Generators::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/subscription_fu/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
15 16 17 |
# File 'lib/generators/subscription_fu/install_generator.rb', line 15 def copy_initializer template 'initializer.rb', 'config/initializers/subscription_fu.rb' end |
#copy_language_file ⇒ Object
18 19 20 |
# File 'lib/generators/subscription_fu/install_generator.rb', line 18 def copy_language_file template 'en.yml', 'config/locales/subscription_fu.en.yml' end |
#create_migration_file ⇒ Object
12 13 14 |
# File 'lib/generators/subscription_fu/install_generator.rb', line 12 def create_migration_file migration_template 'migration.rb', 'db/migrate/create_subscription_fu_tables.rb' end |