Class: DragoonSystem::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_jsObject



13
14
15
# File 'lib/generators/dragoon_system/install_generator.rb', line 13

def copy_js
  template "application.js", "public/javascripts/application.js"
end

#copy_localeObject



8
9
10
11
# File 'lib/generators/dragoon_system/install_generator.rb', line 8

def copy_locale
  copy_file "../../../config/locales/en.yml", "config/locales/dragoon_system.en.yml"
  copy_file "../../../config/locales/zh-CN.yml", "config/locales/dragoon_system.zh-CN.yml"
end