Class: MightyGrid::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject


10
11
12
# File 'lib/generators/mighty_grid/install_generator.rb', line 10

def copy_config_file
  template 'mighty_grid.rb', 'config/initializers/mighty_grid.rb'
end

#copy_locale_fileObject


14
15
16
# File 'lib/generators/mighty_grid/install_generator.rb', line 14

def copy_locale_file
  copy_file '../../../../config/locales/en.yml', 'config/locales/mighty_grid.en.yml'
end