Class: DragoonSystem::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- DragoonSystem::Generators::InstallGenerator
- Defined in:
- lib/generators/dragoon_system/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_js ⇒ Object
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_locale ⇒ Object
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 |