Class: Locastyle::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Locastyle::Generators::InstallGenerator
- Defined in:
- lib/generators/locastyle/install_generator.rb
Constant Summary collapse
- SHARED_PATH =
File.("app/views/layouts/shared")
- TEMPLATE_PATH =
File.("app/views/layouts/application.html.erb")
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
11 12 13 |
# File 'lib/generators/locastyle/install_generator.rb', line 11 def copy_files directory "shared", SHARED_PATH end |
#create_layout ⇒ Object
15 16 17 |
# File 'lib/generators/locastyle/install_generator.rb', line 15 def create_layout template "application.html.erb", TEMPLATE_PATH end |