Class: LokaliseRails::Generators::InstallGenerator

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

Overview

Installs the LokaliseRails configuration file in a Rails application.

Instance Method Summary collapse

Instance Method Details

#copy_configObject

Copies the configuration template to the application’s config directory.



15
16
17
# File 'lib/generators/lokalise_rails/install_generator.rb', line 15

def copy_config
  template 'lokalise_rails_config.rb', "#{Rails.root}/config/lokalise_rails.rb"
end