Sha256: 79b9c13317680c73d9d47c42b1cf90766640a5701dbef994df3d1ab0dd2d8187
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require 'rails/generators' module Economy module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_initializer_file copy_file 'initializer.rb', 'config/initializers/economy.rb' end def create_configuration_file copy_file 'configuration.yml', 'config/redis.yml' end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_exchanges.rb' end def self.next_migration_number(path) Time.now.utc.strftime '%Y%m%d%H%M%S' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
economy-4.0.2.0 | lib/generators/economy/install/install_generator.rb |