Class: Wechat::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/wechat/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_wechat_config_migrationObject



11
12
13
14
15
16
17
# File 'lib/generators/wechat/config_generator.rb', line 11

def copy_wechat_config_migration
  migration_template(
      'db/config_migration.rb.erb',
      'db/migrate/create_wechat_configs.rb',
      {migration_version: migration_version}
  )
end

#copy_wechat_config_modelObject



19
20
21
# File 'lib/generators/wechat/config_generator.rb', line 19

def copy_wechat_config_model
  template 'app/models/wechat_config.rb'
end