Class: Glib::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/glib/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/glib/install_generator.rb', line 10

def copy_initializer
  [
    '20191017062519_create_texts.rb',
    '20191024063257_add_scope_to_texts.rb',
    '20191112095018_add_lang_to_texts.rb',
    '20191126071051_create_active_storage_tables.active_storage.rb'
  ].each do |migration_file|
    template migration_file, "db/dynamic_text_migrate/#{migration_file}"
  end
  template 'dynamic_text.rb', 'config/initializers/dynamic_text.rb'
  template 'database.yml', 'config/database.yml'
end