Class: SubscriptionFu::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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_initializerObject



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_fileObject



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_fileObject



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